Home
last modified time | relevance | path

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

12345678910>>...41

/external/v8/test/webkit/
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-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 …]
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/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DCollisionWorldTest.java77 …sionGround", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.… in create()
78 0.25f + 0.5f * (float)Math.random(), 1f); in create()
80 …ollisionBox", 0f, 1f, 5f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.r… in create()
81 0.5f + 0.5f * (float)Math.random(), 1f); in create()
82 …llisionBox", 0f, 1f, -5f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.r… in create()
83 0.5f + 0.5f * (float)Math.random(), 1f); in create()
84 …ollisionBox", 5f, 1f, 0f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.r… in create()
85 0.5f + 0.5f * (float)Math.random(), 1f); in create()
86 …llisionBox", -5f, 1f, 0f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.r… in create()
87 0.5f + 0.5f * (float)Math.random(), 1f); in create()
[all …]
DConstraintsTest.java46 …dd("ground", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.… in create()
47 0.25f + 0.5f * (float)Math.random(), 1f); in create()
50 bar.setColor(0.75f + 0.25f * (float)Math.random(), 0.75f + 0.25f * (float)Math.random(), in create()
51 0.75f + 0.25f * (float)Math.random(), 1f); in create()
54 …box1.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f … in create()
64 box2.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), in create()
65 0.5f + 0.5f * (float)Math.random(), 1f); in create()
70 box1.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), in create()
71 0.5f + 0.5f * (float)Math.random(), 1f); in create()
DMeshShapeTest.java58 …0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Ma… in create()
60 …dd("ground", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.… in create()
61 0.25f + 0.5f * (float)Math.random(), 1f); in create()
65 …world.add("sphere", x, 10f + (float)Math.random() * 0.1f, z).setColor(0.5f + 0.5f * (float)Math.ra… in create()
66 0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), 1f); in create()
DGimpactTest.java35 (ground = world.add("ground", 0f, 0f, 0f)).setColor(0.25f + 0.5f * (float)Math.random(), in create()
36 0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random(), 1f); in create()
39 …world.add("chassis", -2f + (float)Math.random() * 4f, y, -2f + (float)Math.random() * 4f).setColor( in create()
40 …0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Ma… in create()
DConvexHullTest.java41 …dd("ground", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.… in create()
42 0.25f + 0.5f * (float)Math.random(), 1f); in create()
45 world.add("car", -2f + (float)Math.random() * 4f, y, -2f + (float)Math.random() * 4f).setColor( in create()
46 …0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Ma… in create()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/java/lang/
DStrictMath.java32 return Math.abs(a); in abs()
36 return Math.atan2(y,x); in atan2()
40 return Math.ceil(a); in ceil()
44 return Math.cos(a); in cos()
48 return Math.floor(a); in floor()
52 return Math.pow(a, b); in pow()
56 return Math.round(a); in round()
60 return Math.sin(a); in sin()
64 return Math.sqrt(a); in sqrt()
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/equations/
DElastic.java21 else s = p/(2*PI) * (float)Math.asin(1/a);
22 return -(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p ));
39 else s = p/(2*PI) * (float)Math.asin(1/a);
40 return a*(float)Math.pow(2,-10*t) * (float)Math.sin( (t-s)*(2*PI)/p ) + 1;
57 else s = p/(2*PI) * (float)Math.asin(1/a);
58 if (t < 1) return -.5f*(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p ));
59 return a*(float)Math.pow(2,-10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p )*.5f + 1;
/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 …]
/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/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DTextureRegion.java85 regionWidth = Math.abs(width); in setRegion()
86 regionHeight = Math.abs(height); in setRegion()
91 regionWidth = Math.round(Math.abs(u2 - u) * texWidth); in setRegion()
92 regionHeight = Math.round(Math.abs(v2 - v) * texHeight); in setRegion()
136 regionWidth = Math.round(Math.abs(u2 - u) * texture.getWidth()); in setU()
145 regionHeight = Math.round(Math.abs(v2 - v) * texture.getHeight()); in setV()
154 regionWidth = Math.round(Math.abs(u2 - u) * texture.getWidth()); in setU2()
163 regionHeight = Math.round(Math.abs(v2 - v) * texture.getHeight()); in setV2()
167 return Math.round(u * texture.getWidth()); in getRegionX()
175 return Math.round(v * texture.getHeight()); in getRegionY()
/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/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DStack.java77 prefWidth = Math.max(prefWidth, layout.getPrefWidth()); in computeSize()
78 prefHeight = Math.max(prefHeight, layout.getPrefHeight()); in computeSize()
79 minWidth = Math.max(minWidth, layout.getMinWidth()); in computeSize()
80 minHeight = Math.max(minHeight, layout.getMinHeight()); in computeSize()
84 prefWidth = Math.max(prefWidth, child.getWidth()); in computeSize()
85 prefHeight = Math.max(prefHeight, child.getHeight()); in computeSize()
86 minWidth = Math.max(minWidth, child.getWidth()); in computeSize()
87 minHeight = Math.max(minHeight, child.getHeight()); in computeSize()
91 …if (childMaxWidth > 0) maxWidth = maxWidth == 0 ? childMaxWidth : Math.min(maxWidth, childMaxWidth… in computeSize()
92 …if (childMaxHeight > 0) maxHeight = maxHeight == 0 ? childMaxHeight : Math.min(maxHeight, childMax… in computeSize()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DInterpolation.java92 return (1 - (float)Math.sqrt(1 - a * a)) / 2;
96 return ((float)Math.sqrt(1 - a * a) + 1) / 2;
102 return 1 - (float)Math.sqrt(1 - a * a);
109 return (float)Math.sqrt(1 - a * a);
135 if (a <= 0.5f) return (float)Math.pow(a * 2, power) / 2; in apply()
136 return (float)Math.pow((a - 1) * 2, power) / (power % 2 == 0 ? -2 : 2) + 1; in apply()
146 return (float)Math.pow(a, power); in apply()
156 return (float)Math.pow(a - 1, power) * (power % 2 == 0 ? -1 : 1) + 1; in apply()
168 min = (float)Math.pow(value, -power); in Exp()
173 if (a <= 0.5f) return ((float)Math.pow(value, power * (a * 2 - 1)) - min) * scale / 2; in apply()
[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 …]

12345678910>>...41