Home
last modified time | relevance | path

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

12345678910>>...27

/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-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 …]
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 …]
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/jmonkeyengine/engine/src/desktop/jme3tools/navigation/
DNavCalculator.java98 trueCourse = (float) Math.toDegrees(Math.atan(dLong / dmp)); in mercatorSailing()
100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); in mercatorSailing()
121 double sgnDLong = 0 - (dLong / Math.abs(dLong)); in planeSailing()
122 if (Math.abs(dLong) > 180 * 60) { in planeSailing()
123 dLong = (360 * 60 - Math.abs(dLong)) * sgnDLong; in planeSailing()
129 redist = Math.abs(dLong); in planeSailing()
131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360)); in planeSailing()
133 recourse = (float) Math.asin(0 - sgnDLong); in planeSailing()
134 recourse = recourse * 360 / 2 / (float) Math.PI; in planeSailing()
156 return Math.abs(tc); in convertCourse()
[all …]
DCoordinate.java79 … minsDecMins = Double.parseDouble(form.format((Math.abs(decCoordinate) - Math.abs(deg)) * 60)); in Coordinate()
142 str = su.padNumZero(Math.abs(deg), 2); in toStringDegMin()
143 … str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; in toStringDegMin()
151 str = su.padNumZero(Math.abs(deg), 3); in toStringDegMin()
152 … str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; in toStringDegMin()
191 if (Math.abs(decCoordinate) > 90.0) { in verify()
197 if (Math.abs(decCoordinate) > 180) { in verify()
/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/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestCollisionShapeFactory.java111 …geometry.setLocalTranslation((float) Math.random() * 10 -10, (float) Math.random() * 10 -10, (floa… in attachRandomGeometry()
112 …(new Quaternion().fromAngles((float) Math.random() * FastMath.PI, (float) Math.random() * FastMath… in attachRandomGeometry()
113 …geometry.setLocalScale((float) Math.random() * 10 -10, (float) Math.random() * 10 -10, (float) Mat… in attachRandomGeometry()
120 …spat.setLocalTranslation((float) Math.random() * 10, (float) Math.random() * 10, (float) Math.rand… in randomizeTransform()
121 …spat.setLocalTranslation((float) Math.random() * 10, (float) Math.random() * 10, (float) Math.rand… in randomizeTransform()
122 …spat.setLocalScale((float) Math.random() * 2, (float) Math.random() * 2, (float) Math.random() * 2… in randomizeTransform()
/external/robolectric/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/jmonkeyengine/engine/src/core/com/jme3/math/
DFastMath.java55 public static final float PI = (float) Math.PI;
91 return (int) Math.pow(2, Math.ceil(Math.log(number) / Math.log(2))); in nearestPowerOfTwo()
424 return (float) Math.acos(fValue); in acos()
445 return (float) Math.asin(fValue); in asin()
461 return (float) Math.atan(fValue); in atan()
472 return (float) Math.atan2(fY, fX); in atan2()
482 return (float) Math.ceil(fValue); in ceil()
496 if (Math.abs(radians) > PI) { // put us in -PI to +PI space in reduceSinAngle()
499 if (Math.abs(radians) > HALF_PI) {// put us in -PI/2 to +PI/2 space in reduceSinAngle()
518 if (Math.abs(fValue) <= Math.PI / 4) { in sin2()
[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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DTextureGeneratorMagic.java55 xyz[1] = -(float) Math.cos(xyz[0] - xyz[1] + xyz[2]) * turbulence;
61 xyz[0] = (float) Math.cos(xyz[0] - xyz[1] - xyz[2]) * turbulence;
67 xyz[2] = (float) Math.sin(-xyz[0] - xyz[1] - xyz[2]) * turbulence;
73 xyz[0] = -(float) Math.cos(-xyz[0] + xyz[1] - xyz[2]) * turbulence;
79 xyz[1] = -(float) Math.sin(-xyz[0] + xyz[1] + xyz[2]) * turbulence;
85 xyz[1] = -(float) Math.cos(-xyz[0] + xyz[1] + xyz[2]) * turbulence;
91 xyz[0] = (float) Math.cos(xyz[0] + xyz[1] + xyz[2]) * turbulence;
97 xyz[2] = (float) Math.sin(xyz[0] + xyz[1] - xyz[2]) * turbulence;
103 xyz[0] = -(float) Math.cos(-xyz[0] - xyz[1] + xyz[2]) * turbulence;
109 xyz[1] = -(float) Math.sin(xyz[0] - xyz[1] + xyz[2]) * turbulence;
[all …]
DUVProjectionGenerator.java62 float borderAngle = (float) Math.sqrt(2.0f) / 2.0f; in cubeProjection()
66 float dotNX = Math.abs(n.dot(x)); in cubeProjection()
67 float dorNY = Math.abs(n.dot(y)); in cubeProjection()
68 float dotNZ = Math.abs(n.dot(z)); in cubeProjection()
143 float sgn1 = Math.signum(triangle.get1().x-cx); in tubeProjection()
144 float sgn2 = Math.signum(triangle.get2().x-cx); in tubeProjection()
145 float sgn3 = Math.signum(triangle.get3().x-cx); in tubeProjection()
147 float ySideFactor = Math.signum(triangle.get1().y-cy)+ in tubeProjection()
148 Math.signum(triangle.get2().y-cy)+ in tubeProjection()
149 Math.signum(triangle.get3().y-cy); in tubeProjection()
[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/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/
DShaderUtils.java181 return (float) Math.pow(x, 1 / gamma); in gammaCorrection()
185 return (float) Math.pow(x, Math.log(b) / Math.log(0.5)); in bias()
197 value += Math.sin(2 * Math.PI * f * s) / f; in sinValue()
200 value += fade * Math.sin(2 * Math.PI * f * s) / f; in sinValue()
205 return (float) Math.sqrt(x * x + y * y + z * z); in length()
217 float cax = (float) Math.cos(ax); in calcRotationMatrix()
218 float sax = (float) Math.sin(ax); in calcRotationMatrix()
219 float cay = (float) Math.cos(ay); in calcRotationMatrix()
220 float say = (float) Math.sin(ay); in calcRotationMatrix()
221 float caz = (float) Math.cos(az); in calcRotationMatrix()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DParticleDepositionHeightMap.java160 x = (int) (Math.rint(Math.random() * (size - 1))); in load()
161 y = (int) (Math.rint(Math.random() * (size - 1))); in load()
170 (int) (Math.rint( in load()
171 (Math.random() * (maxParticles - minParticles)) in load()
177 m = (int) (Math.rint(Math.random() * 7)); in load()
199 m = (int) (Math.rint((Math.random() * 8))); in load()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/
DOptimizedErode.java88 if (Math.abs(h - hV) > this.talus && Math.abs(h - tmp[idxVL]) > this.talus || vertT) { in filter()
91 if (Math.abs(h - hV) <= this.talus) { in filter()
97 if (Math.abs(h - hH) > this.talus && Math.abs(h - tmp[idxHL]) > this.talus || horizT) { in filter()
100 if (Math.abs(h - hH) <= this.talus) { in filter()
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java588 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart()
617 ms = (long)Math.ceil(29.5*realMonth) in monthStart()
618 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0); in monthStart()
647 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart()
691 age = age * 180 / Math.PI; in moonAge()
841 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
842 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
843 month = Math.min(month, 11); in handleComputeFields()
846 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields()
848 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
[all …]
/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()

12345678910>>...27