Home
last modified time | relevance | path

Searched refs:Math (Results 1 – 25 of 748) sorted by relevance

12345678910>>...30

/external/v8/test/webkit/
Ddfg-sqrt-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.sqrt could potentially use value in…
29 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
30 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
31 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
32 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
33 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
34 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
35 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
36 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
37 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
[all …]
Ddfg-abs-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.abs could potentially use value in …
29 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
30 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
31 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
32 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
33 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
34 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
35 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
36 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
37 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5)
[all …]
Ddfg-min-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.min could potentially use value in …
29 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
30 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
31 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
32 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
33 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
34 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
35 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
36 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
37 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5)
[all …]
Ddfg-max-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.max could potentially use value in …
29 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
30 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
31 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
32 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
33 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
34 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
35 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
36 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
37 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5)
[all …]
Dmath-expected.txt24 This test checks the behavior of the Math object as described in 15.8 of the language specification.
29 PASS Math.abs(NaN) is NaN
30 PASS Math.abs(0) is 0
31 PASS Math.abs(-0) is 0
32 PASS Math.abs(1) is 1
33 PASS Math.abs(-1) is 1
34 PASS Math.abs(Number.MIN_VALUE) is Number.MIN_VALUE
35 PASS Math.abs(-Number.MIN_VALUE) is Number.MIN_VALUE
36 PASS Math.abs(Number.MAX_VALUE) is Number.MAX_VALUE
37 PASS Math.abs(-Number.MAX_VALUE) is Number.MAX_VALUE
[all …]
Ddfg-proven-sqrt-backwards-propagation-expected.txt24 Tests that the DFG knows that a Math.sqrt could potentially use value in arbitrary ways, and not ju…
29 PASS foo(array, 0) is Math.sqrt(1.5)
30 PASS foo(array, 0) is Math.sqrt(1.5)
31 PASS foo(array, 0) is Math.sqrt(1.5)
32 PASS foo(array, 0) is Math.sqrt(1.5)
33 PASS foo(array, 0) is Math.sqrt(1.5)
34 PASS foo(array, 0) is Math.sqrt(1.5)
35 PASS foo(array, 0) is Math.sqrt(1.5)
36 PASS foo(array, 0) is Math.sqrt(1.5)
37 PASS foo(array, 0) is Math.sqrt(1.5)
[all …]
Ddfg-intrinsic-osr-exit-expected.txt29 PASS foo([Math.abs], {f:5}) is 5
30 PASS foo([Math.abs], {f:5.5}) is 5.5
31 PASS foo([Math.abs], {f:5.5}) is 5.5
32 PASS foo([Math.abs], {f:5.5}) is 5.5
33 PASS foo([Math.abs], {f:5.5}) is 5.5
34 PASS foo([Math.abs], {f:5.5}) is 5.5
35 PASS foo([Math.abs], {f:5.5}) is 5.5
36 PASS foo([Math.abs], {f:5.5}) is 5.5
37 PASS foo([Math.abs], {f:5.5}) is 5.5
38 PASS foo([Math.abs], {f:5.5}) is 5.5
[all …]
/external/v8/test/webkit/fast/js/kde/
Dmath-expected.txt31 PASS String()+Math.E is '2.718281828459045'
32 PASS String()+Math.LN2 is '0.6931471805599453'
33 PASS String()+Math.LN10 is '2.302585092994046'
34 PASS String()+Math.LOG2E is '1.4426950408889634'
35 PASS String()+Math.LOG10E is '0.4342944819032518'
36 PASS String()+Math.PI is '3.141592653589793'
37 PASS String()+Math.SQRT1_2 is '0.7071067811865476'
38 PASS String()+Math.SQRT2 is '1.4142135623730951'
42 PASS Math.abs(-5) is 5
43 PASS Math.acos(0) is Math.PI/2
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarAstronomer.java374 double JD = Math.floor(getJulianDay() - 0.5) + 0.5; in getSiderealOffset()
444 double sinE = Math.sin(obliq); in eclipticToEquatorial()
445 double cosE = Math.cos(obliq); in eclipticToEquatorial()
447 double sinL = Math.sin(eclipLong); in eclipticToEquatorial()
448 double cosL = Math.cos(eclipLong); in eclipticToEquatorial()
450 double sinB = Math.sin(eclipLat); in eclipticToEquatorial()
451 double cosB = Math.cos(eclipLat); in eclipticToEquatorial()
452 double tanB = Math.tan(eclipLat); in eclipticToEquatorial()
454 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial()
455 Math.asin(sinB*cosE + cosB*sinE*sinL) ); in eclipticToEquatorial()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarAstronomer.java376 double JD = Math.floor(getJulianDay() - 0.5) + 0.5; in getSiderealOffset()
446 double sinE = Math.sin(obliq); in eclipticToEquatorial()
447 double cosE = Math.cos(obliq); in eclipticToEquatorial()
449 double sinL = Math.sin(eclipLong); in eclipticToEquatorial()
450 double cosL = Math.cos(eclipLong); in eclipticToEquatorial()
452 double sinB = Math.sin(eclipLat); in eclipticToEquatorial()
453 double cosB = Math.cos(eclipLat); in eclipticToEquatorial()
454 double tanB = Math.tan(eclipLat); in eclipticToEquatorial()
456 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial()
457 Math.asin(sinB*cosE + cosB*sinE*sinL) ); in eclipticToEquatorial()
[all …]
/external/opencv3/modules/core/misc/java/src/java/
Dcore+RotatedRect.java45 double _angle = angle * Math.PI / 180.0; in points()
46 double b = (double) Math.cos(_angle) * 0.5f; in points()
47 double a = (double) Math.sin(_angle) * 0.5f; in points()
70 …Rect r = new Rect((int) Math.floor(Math.min(Math.min(Math.min(pt[0].x, pt[1].x), pt[2].x), pt[3].x… in boundingRect()
71 (int) Math.floor(Math.min(Math.min(Math.min(pt[0].y, pt[1].y), pt[2].y), pt[3].y)), in boundingRect()
72 (int) Math.ceil(Math.max(Math.max(Math.max(pt[0].x, pt[1].x), pt[2].x), pt[3].x)), in boundingRect()
73 (int) Math.ceil(Math.max(Math.max(Math.max(pt[0].y, pt[1].y), pt[2].y), pt[3].y))); in boundingRect()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLocation.java250 lat1 *= Math.PI / 180.0; in computeDistanceAndBearing()
251 lat2 *= Math.PI / 180.0; in computeDistanceAndBearing()
252 lon1 *= Math.PI / 180.0; in computeDistanceAndBearing()
253 lon2 *= Math.PI / 180.0; in computeDistanceAndBearing()
262 double U1 = Math.atan((1.0 - f) * Math.tan(lat1)); in computeDistanceAndBearing()
263 double U2 = Math.atan((1.0 - f) * Math.tan(lat2)); in computeDistanceAndBearing()
265 double cosU1 = Math.cos(U1); in computeDistanceAndBearing()
266 double cosU2 = Math.cos(U2); in computeDistanceAndBearing()
267 double sinU1 = Math.sin(U1); in computeDistanceAndBearing()
268 double sinU2 = Math.sin(U2); in computeDistanceAndBearing()
[all …]
DShadowFloatMath.java28 return (float) Math.floor(value); in floor()
33 return (float) Math.ceil(value); in ceil()
38 return (float) Math.sin(angle); in sin()
43 return (float) Math.cos(angle); in cos()
48 return (float) Math.sqrt(value); in sqrt()
/external/opencv3/modules/core/misc/java/test/
DRotatedRectTest.java33 double halfDiagonal = length * Math.sqrt(2) / 2; in testBoundingRect()
35 …assertTrue((r.x == Math.floor(center.x - halfDiagonal)) && (r.y == Math.floor(center.y - halfDiago… in testBoundingRect()
37 …assertTrue((r.br().x >= Math.ceil(center.x + halfDiagonal)) && (r.br().y >= Math.ceil(center.y + h… in testBoundingRect()
39 …assertTrue((r.br().x - Math.ceil(center.x + halfDiagonal)) <= 1 && (r.br().y - Math.ceil(center.y … in testBoundingRect()
103Math.abs((p[0].x + p[2].x) / 2 - center.x) + Math.abs((p[0].y + p[2].y) / 2 - center.y) < EPS); in testPoints()
106Math.abs((p[1].x + p[3].x) / 2 - center.x) + Math.abs((p[1].y + p[3].y) / 2 - center.y) < EPS); in testPoints()
109 Math.abs((p[1].x - p[0].x) * (p[2].x - p[1].x) + in testPoints()
113 Math.abs((p[2].x - p[1].x) * (p[3].x - p[2].x) + in testPoints()
117 Math.abs((p[3].x - p[2].x) * (p[0].x - p[3].x) + in testPoints()
121 Math.abs((p[0].x - p[3].x) * (p[1].x - p[0].x) + in testPoints()
[all …]
/external/crcalc/tests/src/com/hp/creals/
DSlowCRTest.java40 check(Math.abs(x - y) <= 0.000001, s); in checkApprEq()
68 if (Math.abs(xAsDouble) < 1000000.0) { in checkTrig()
69 checkApprEq(x.sin().doubleValue(), Math.sin(xAsDouble), in checkTrig()
71 checkApprEq(x.cos().doubleValue(), Math.cos(xAsDouble), in checkTrig()
73 checkApprEq(TAN.execute(x).doubleValue(), Math.tan(xAsDouble), in checkTrig()
75 checkApprEq(ATAN.execute(x).doubleValue(), Math.atan(xAsDouble), in checkTrig()
78 if (Math.abs(xAsDouble) < 1.0) { in checkTrig()
79 checkApprEq(x.asin().doubleValue(), Math.asin(xAsDouble), in checkTrig()
81 checkApprEq(x.acos().doubleValue(), Math.acos(xAsDouble), in checkTrig()
87 checkApprEq(COSINE.execute(x).doubleValue(), Math.cos(xAsDouble), in checkTrig()
[all …]
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/
DCSpinner.java210 setSelection(Math.max(m_value, m_minimum)); in setMinimum()
218 setSelection(Math.min(m_value, m_maximum)); in setMaximum()
235 newValue = Math.min(Math.max(m_minimum, newValue), m_maximum); in setSelection()
324 size.x = Math.min(size.x, wHint); in computeSize()
327 size.y = Math.min(size.y, hHint); in computeSize()
344 sSize.y = Math.min(sSize.y, Math.min(tSize.y, cRect.height)); in layout()
345 sSize.x = Math.min(sSize.x, cRect.width); in layout()
375 size.x = Math.min(size.x, wHint); in computeSize()
378 size.y = Math.min(size.y, hHint); in computeSize()
395 sSize.y = Math.min(sSize.y, Math.min(tSize.y, cRect.height)); in layout()
[all …]
/external/opencv3/3rdparty/openexr/Imath/
DImathEuler.h481 x = Math<T>::atan2 (M[j][i], M[k][i]); in extract()
503 T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); in extract()
504 y = Math<T>::atan2 (sy, N[i][i]); in extract()
505 z = Math<T>::atan2 (N[j][k], N[j][j]); in extract()
513 x = Math<T>::atan2 (M[j][k], M[k][k]); in extract()
535 T cy = Math<T>::sqrt (N[i][i]*N[i][i] + N[i][j]*N[i][j]); in extract()
536 y = Math<T>::atan2 (-N[i][k], cy); in extract()
537 z = Math<T>::atan2 (-N[j][i], N[j][j]); in extract()
563 x = Math<T>::atan2 (M[j][i], M[k][i]); in extract()
582 T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); in extract()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DIslamicCalendar.java561 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart()
590 ms = (long)Math.ceil(29.5*realMonth) in monthStart()
591 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0); in monthStart()
620 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart()
664 age = age * 180 / Math.PI; in moonAge()
808 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
809 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
810 month = Math.min(month, 11); in handleComputeFields()
813 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields()
815 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java583 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart()
612 ms = (long)Math.ceil(29.5*realMonth) in monthStart()
613 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0); in monthStart()
642 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart()
686 age = age * 180 / Math.PI; in moonAge()
836 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
837 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
838 month = Math.min(month, 11); in handleComputeFields()
841 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields()
843 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java139 this.year = Math.min(Math.abs(year), 9999); in setYear()
215 this.hour = Math.min(Math.abs(hour), 23); in setHour()
233 this.minute = Math.min(Math.abs(minute), 59); in setMinute()
251 this.second = Math.min(Math.abs(second), 59); in setSecond()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCaptureQualityController.java77 maxCaptureBandwidth = Math.max(maxCaptureBandwidth, in onProgressChanged()
86 (Math.exp(kExpConstant * bandwidthFraction) - 1) / (Math.exp(kExpConstant) - 1); in onProgressChanged()
108 return (int) Math.round(Math.min(format.maxFramerate, in calculateFramerate()
109 (int) Math.round(bandwidth / (format.width * format.height))) / 1000.0); in calculateFramerate()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicDoubleTest.java28 -Math.PI,
35 Math.PI,
100 double prev = Math.E; in testCompareAndSet()
101 double unused = Math.E + Math.PI; in testCompareAndSet()
137 double prev = Math.E; in testWeakCompareAndSet()
138 double unused = Math.E + Math.PI; in testWeakCompareAndSet()
156 double prev = Math.E; in testGetAndSet()
/external/replicaisland/src/com/replica/replicaisland/
DCameraSystem.java105 mShakeOffsetY = (float) (Math.sin(mShakeTime * SHAKE_FREQUENCY) * mShakeMagnitude); in update()
136 if (Math.abs(xDelta) > X_FOLLOW_DISTANCE) { in update()
154 mFocalPosition.x = (float) Math.floor(mCurrentCameraPosition.x); in update()
157 mFocalPosition.y = (float) Math.floor(mCurrentCameraPosition.y + mShakeOffsetY); in update()
175 if (Math.abs(mFocalPosition.x - point.x) < (width + radius)) { in pointVisible()
176 if (Math.abs(mFocalPosition.y - point.y) < (height + radius)) { in pointVisible()
193 final float worldPixelWidth = Math.max(level.getLevelWidth(), width); in snapFocalPointToWorldBoundsX()
217 …final float worldPixelHeight = Math.max(level.getLevelHeight(), sSystemRegistry.contextParameters.… in snapFocalPointToWorldBoundsY()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DListViewActivity.java79 double rl = Math.random(); in getView()
80 double gl = Math.random(); in getView()
81 double bl = Math.random(); in getView()
83 double rp = Math.random(); in getView()
84 double gp = Math.random(); in getView()
85 double bp = Math.random(); in getView()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationMonkeyTest.java54 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey()
55 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey()
56 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCollationKey()
57 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCollationKey()
131 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
132 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
133 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCompare()
134 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCompare()

12345678910>>...30