/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.7.js | 35 var TITLE = "Math.cos(x)"; 46 array[item++] = new TestCase( SECTION, "Math.cos.length", 1, Math.cos.length ); 48 array[item++] = new TestCase( SECTION, "Math.cos()", Number.NaN, Math.cos() ); 49 array[item++] = new TestCase( SECTION, "Math.cos(void 0)", Number.NaN, Math.cos(void 0) ); 50 array[item++] = new TestCase( SECTION, "Math.cos(false)", 1, Math.cos(false) ); 51 array[item++] = new TestCase( SECTION, "Math.cos(null)", 1, Math.cos(null) ) [all...] |
15.8.2.3.js | 40 var TITLE = "Math.asin()"; 51 array[item++] = new TestCase( SECTION, "Math.asin()", Number.NaN, Math.asin() ); 52 array[item++] = new TestCase( SECTION, "Math.asin(void 0)", Number.NaN, Math.asin(void 0) ); 53 array[item++] = new TestCase( SECTION, "Math.asin(null)", 0, Math.asin(null) ); 54 array[item++] = new TestCase( SECTION, "Math.asin(NaN)", Number.NaN, Math.asin(Number.NaN) ); 56 array[item++] = new TestCase( SECTION, "Math.asin('string')", Number.NaN, Math.asin("string") ) [all...] |
15.8.2.6.js | 24 ECMA Section: 15.8.2.6 Math.ceil(x) 36 - the value of Math.ceil(x) == -Math.ceil(-x) 43 var TITLE = "Math.ceil(x)"; 54 array[item++] = new TestCase( SECTION, "Math.ceil.length", 1, Math.ceil.length ); 56 array[item++] = new TestCase( SECTION, "Math.ceil(NaN)", Number.NaN, Math.ceil(Number.NaN) ); 57 array[item++] = new TestCase( SECTION, "Math.ceil(null)", 0, Math.ceil(null) ) [all...] |
15.8.2.2.js | 38 var TITLE = "Math.acos()"; 49 array[item++] = new TestCase( SECTION, "Math.acos.length", 1, Math.acos.length ); 51 array[item++] = new TestCase( SECTION, "Math.acos(void 0)", Number.NaN, Math.acos(void 0) ); 52 array[item++] = new TestCase( SECTION, "Math.acos()", Number.NaN, Math.acos() ); 53 array[item++] = new TestCase( SECTION, "Math.acos(null)", Math.PI/2, Math.acos(null) ) [all...] |
15.8.2.1.js | 37 var TITLE = "Math.abs()"; 49 array[item++] = new TestCase( SECTION, "Math.abs.length", 1, Math.abs.length ); 51 array[item++] = new TestCase( SECTION, "Math.abs()", Number.NaN, Math.abs() ); 52 array[item++] = new TestCase( SECTION, "Math.abs( void 0 )", Number.NaN, Math.abs(void 0) ); 53 array[item++] = new TestCase( SECTION, "Math.abs( null )", 0, Math.abs(null) ); 54 array[item++] = new TestCase( SECTION, "Math.abs( true )", 1, Math.abs(true) ) [all...] |
15.8.2.5.js | 34 var TITLE = "Math.atan2(x,y)"; 46 array[item++] = new TestCase( SECTION, "Math.atan2.length", 2, Math.atan2.length ); 48 array[item++] = new TestCase( SECTION, "Math.atan2(NaN, 0)", Number.NaN, Math.atan2(Number.NaN,0) ); 49 array[item++] = new TestCase( SECTION, "Math.atan2(null, null)", 0, Math.atan2(null, null) ); 50 array[item++] = new TestCase( SECTION, "Math.atan2(void 0, void 0)", Number.NaN, Math.atan2(void 0, void 0) ); 51 array[item++] = new TestCase( SECTION, "Math.atan2()", Number.NaN, Math.atan2() ) [all...] |
15.8.2.4.js | 41 var TITLE = "Math.atan()"; 53 array[item++] = new TestCase( SECTION, "Math.atan.length", 1, Math.atan.length ); 55 array[item++] = new TestCase( SECTION, "Math.atan()", Number.NaN, Math.atan() ); 56 array[item++] = new TestCase( SECTION, "Math.atan(void 0)", Number.NaN, Math.atan(void 0) ); 57 array[item++] = new TestCase( SECTION, "Math.atan(null)", 0, Math.atan(null) ); 58 array[item++] = new TestCase( SECTION, "Math.atan(NaN)", Number.NaN, Math.atan(Number.NaN) ) [all...] |
15.8.2.18.js | 39 var TITLE = "Math.tan(x)"; 51 array[item++] = new TestCase( SECTION, "Math.tan.length", 1, Math.tan.length ); 53 array[item++] = new TestCase( SECTION, "Math.tan()", Number.NaN, Math.tan() ); 54 array[item++] = new TestCase( SECTION, "Math.tan(void 0)", Number.NaN, Math.tan(void 0)); 55 array[item++] = new TestCase( SECTION, "Math.tan(null)", 0, Math.tan(null) ); 56 array[item++] = new TestCase( SECTION, "Math.tan(false)", 0, Math.tan(false) ) [all...] |
15.8.2.15.js | 24 ECMA Section: 15.8.2.15 Math.round(x) 39 Math.round( 3.5 ) == 4 40 Math.round( -3.5 ) == 3 42 - Math.round(x) == Math.floor( x + 0.5 ) 43 except if x = -0. in that case, Math.round(x) = -0 45 and Math.floor( x+0.5 ) = +0 55 var TITLE = "Math.round(x)"; 69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length ) [all...] |
15.8.2.8.js | 24 ECMA Section: 15.8.2.8 Math.exp(x) 41 var TITLE = "Math.exp(x)"; 52 array[item++] = new TestCase( SECTION, "Math.exp.length", 1, Math.exp.length ); 54 array[item++] = new TestCase( SECTION, "Math.exp()", Number.NaN, Math.exp() ); 55 array[item++] = new TestCase( SECTION, "Math.exp(null)", 1, Math.exp(null) ); 56 array[item++] = new TestCase( SECTION, "Math.exp(void 0)", Number.NaN, Math.exp(void 0) ) [all...] |
15.8.2.17.js | 24 ECMA Section: 15.8.2.17 Math.sqrt(x) 39 var TITLE = "Math.sqrt(x)"; 50 array[item++] = new TestCase( SECTION, "Math.sqrt.length", 1, Math.sqrt.length ); 52 array[item++] = new TestCase( SECTION, "Math.sqrt()", Number.NaN, Math.sqrt() ); 53 array[item++] = new TestCase( SECTION, "Math.sqrt(void 0)", Number.NaN, Math.sqrt(void 0) ); 54 array[item++] = new TestCase( SECTION, "Math.sqrt(null)", 0, Math.sqrt(null) ) [all...] |
15.8.2.9.js | 24 ECMA Section: 15.8.2.9 Math.floor(x) 36 - the value of Math.floor(x) == -Math.ceil(-x) 44 var TITLE = "Math.floor(x)"; 55 array[item++] = new TestCase( SECTION, "Math.floor.length", 1, Math.floor.length ); 57 array[item++] = new TestCase( SECTION, "Math.floor()", Number.NaN, Math.floor() ); 58 array[item++] = new TestCase( SECTION, "Math.floor(void 0)", Number.NaN, Math.floor(void 0) ) [all...] |
15.8.2.13.js | 24 ECMA Section: 15.8.2.13 Math.pow(x, y) 35 var TITLE = "Math.pow(x, y)"; 46 array[item++] = new TestCase( SECTION, "Math.pow.length", 2, Math.pow.length ); 48 array[item++] = new TestCase( SECTION, "Math.pow()", Number.NaN, Math.pow() ); 49 array[item++] = new TestCase( SECTION, "Math.pow(null, null)", 1, Math.pow(null,null) ); 50 array[item++] = new TestCase( SECTION, "Math.pow(void 0, void 0)", Number.NaN, Math.pow(void 0, void 0)) [all...] |
15.8.1.js | 24 ECMA Section: 15.8.1.js Value Properties of the Math Object 33 Description: verify the values of some math constants 41 var TITLE = "Value Properties of the Math Object"; 52 array[item++] = new TestCase( "15.8.1.1", "Math.E", 2.7182818284590452354, Math.E ); 53 array[item++] = new TestCase( "15.8.1.1", "typeof Math.E", "number", typeof Math.E ); 54 array[item++] = new TestCase( "15.8.1.2", "Math.LN10", 2.302585092994046, Math.LN10 ); 55 array[item++] = new TestCase( "15.8.1.2", "typeof Math.LN10", "number", typeof Math.LN10 ) [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldAndroidMathTest.java | 25 private static final double HYP = Math.sqrt(2.0); 36 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 44 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 51 // Test for method double java.lang.Math.abs(double) 54 (Math.abs(-1908.8976) == 1908.8976)); 56 (Math.abs(1908.8976) == 1908.8976)); 60 // Test for method float java.lang.Math.abs(float) 62 (Math.abs(-1908.8976f) == 1908.8976f)); 64 (Math.abs(1908.8976f) == 1908.8976f)); 68 // Test for method int java.lang.Math.abs(int [all...] |
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
NavCalculator.java | 98 trueCourse = (float) Math.toDegrees(Math.atan(dLong / dmp)); 100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); 121 double sgnDLong = 0 - (dLong / Math.abs(dLong)); 122 if (Math.abs(dLong) > 180 * 60) { 123 dLong = (360 * 60 - Math.abs(dLong)) * sgnDLong; 129 redist = Math.abs(dLong); 131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360)) [all...] |
NumUtil.java | 25 float p = (float) Math.pow(10, Rpl); 27 float tmp = Math.round(Rval);
|
/external/v8/test/mjsunit/ |
math-pow.js | 33 assertEquals(4, Math.pow(2, 2)); 34 assertEquals(2147483648, Math.pow(2, 31)); 35 assertEquals(0.25, Math.pow(2, -2)); 36 assertEquals(0.0625, Math.pow(2, -4)); 37 assertEquals(1, Math.pow(1, 100)); 38 assertEquals(0, Math.pow(0, 1000)); 41 assertEquals(NaN, Math.pow(2, NaN)); 42 assertEquals(NaN, Math.pow(+0, NaN)); 43 assertEquals(NaN, Math.pow(-0, NaN)); 44 assertEquals(NaN, Math.pow(Infinity, NaN)) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
FloatMath_Delegate.java | 46 return (float)Math.floor(value); 58 return (float)Math.ceil(value); 69 return (float)Math.sin(angle); 80 return (float)Math.cos(angle); 92 return (float)Math.sqrt(value); 104 return (float)Math.exp(value); 117 return (float)Math.pow(x, y); 130 return (float)Math.sqrt(x*x + y*y);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
MathTest.java | 22 double HYP = Math.sqrt(2.0); 32 * @tests java.lang.Math#abs(double) 35 // Test for method double java.lang.Math.abs(double) 38 (Math.abs(-1908.8976) == 1908.8976)); 40 (Math.abs(1908.8976) == 1908.8976)); 44 * @tests java.lang.Math#abs(float) 47 // Test for method float java.lang.Math.abs(float) 49 (Math.abs(-1908.8976f) == 1908.8976f)); 51 (Math.abs(1908.8976f) == 1908.8976f)); 55 * @tests java.lang.Math#abs(int [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/ |
T_invoke_static_1.java | 22 return Math.abs(-1234567);
|
T_invoke_static_19.java | 22 return Math.abs(-1234567);
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static_range/d/ |
T_invoke_static_range_1.java | 22 return Math.abs(-1234567);
|
T_invoke_static_range_19.java | 22 return Math.abs(-1234567);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.5.2-2.js | 47 addCase( new Array(), 0, Math.pow(2,14), Math.pow(2,14) ); 51 addCase( new Array(Math.pow(2,12)), Math.pow(2,12), 0, 0 ); 52 addCase( new Array(Math.pow(2,13)), Math.pow(2,13), Math.pow(2,12), Math.pow(2,12) ); 53 addCase( new Array(Math.pow(2,12)), Math.pow(2,12), Math.pow(2,12), Math.pow(2,12) ) [all...] |