/external/webkit/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.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.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.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.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.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.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...] |
15.8.2.10.js | 24 ECMA Section: 15.8.2.10 Math.log(x) 40 var TITLE = "Math.log(x)"; 52 array[item++] = new TestCase( SECTION, "Math.log.length", 1, Math.log.length ); 54 array[item++] = new TestCase( SECTION, "Math.log()", Number.NaN, Math.log() ); 55 array[item++] = new TestCase( SECTION, "Math.log(void 0)", Number.NaN, Math.log(void 0) ); 56 array[item++] = new TestCase( SECTION, "Math.log(null)", Number.NEGATIVE_INFINITY, Math.log(null) ) [all...] |
15.8.2.11.js | 24 ECMA Section: 15.8.2.11 Math.max(x, y) 41 var TITLE = "Math.max(x, y)"; 53 array[item++] = new TestCase( SECTION, "Math.max.length", 2, Math.max.length ); 55 array[item++] = new TestCase( SECTION, "Math.max()", -Infinity, Math.max() ); 56 array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( void 0, 1 ) ); 57 array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( void 0, void 0 ) ) [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.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.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.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.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.16.js | 34 var TITLE = "Math.sin(x)"; 45 array[item++] = new TestCase( SECTION, "Math.sin.length", 1, Math.sin.length ); 47 array[item++] = new TestCase( SECTION, "Math.sin()", Number.NaN, Math.sin() ); 48 array[item++] = new TestCase( SECTION, "Math.sin(null)", 0, Math.sin(null) ); 49 array[item++] = new TestCase( SECTION, "Math.sin(void 0)", Number.NaN, Math.sin(void 0) ); 50 array[item++] = new TestCase( SECTION, "Math.sin(false)", 0, Math.sin(false) ) [all...] |
15.8.2.12.js | 24 ECMA Section: 15.8.2.12 Math.min(x, y) 42 var TITLE = "Math.min(x, y)"; 54 array[item++] = new TestCase( SECTION, "Math.min.length", 2, Math.min.length ); 56 array[item++] = new TestCase( SECTION, "Math.min()", Infinity, Math.min() ); 57 array[item++] = new TestCase( SECTION, "Math.min(void 0, 1)", Number.NaN, Math.min( void 0, 1 ) ); 58 array[item++] = new TestCase( SECTION, "Math.min(void 0, void 0)", Number.NaN, Math.min( void 0, void 0 ) ) [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
MathPerformanceTest.java | 24 * Implements basic performance test functionality for java.lang.Math 44 result = Math.abs(sDouble1); 45 result = Math.abs(sDouble1); 46 result = Math.abs(sDouble1); 47 result = Math.abs(sDouble1); 48 result = Math.abs(sDouble1); 49 result = Math.abs(sDouble1); 50 result = Math.abs(sDouble1); 51 result = Math.abs(sDouble1); 52 result = Math.abs(sDouble1) [all...] |
MathTest.java | 27 private final double HYP = Math.sqrt(2.0); 38 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 46 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 53 * @tests java.lang.Math#abs(double) 57 // Test for method double java.lang.Math.abs(double) 60 (Math.abs(-1908.8976) == 1908.8976)); 62 (Math.abs(1908.8976) == 1908.8976)); 66 * @tests java.lang.Math#abs(float) 70 // Test for method float java.lang.Math.abs(float) 72 (Math.abs(-1908.8976f) == 1908.8976f)) [all...] |
/dalvik/libcore/math/src/main/java/org/apache/harmony/math/internal/nls/ |
messages.properties | 17 math.00=Invalid rounding mode 18 math.01=power of ten too big 19 math.02=Scale out of range. 20 math.03=Infinite or NaN 21 math.04=Division by zero 22 math.05=Non-terminating decimal expansion; no exact representable decimal result. 23 math.06=Division impossible 24 math.07=Invalid Operation 25 math.08=Rounding necessary 26 math.09=Overflo [all...] |
/bionic/libm/src/ |
s_signgam.c | 1 #include "math.h"
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
MathTest.java | 24 @TestTargetClass(Math.class) 27 double HYP = Math.sqrt(2.0); 38 junit.framework.Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 45 junit.framework.Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 51 * @tests java.lang.Math#abs(double) 60 // Test for method double java.lang.Math.abs(double) 62 (Math.abs(-1908.8976) == 1908.8976)); 64 (Math.abs(1908.8976) == 1908.8976)); 65 assertEquals(0.0, Math.abs(0.0)); 66 assertEquals(0.0, Math.abs(-0.0)) [all...] |
/external/v8/test/mjsunit/ |
math-min-max.js | 30 // Test Math.min(). 32 assertEquals(Infinity, Math.min()); 33 assertEquals(1, Math.min(1)); 34 assertEquals(1, Math.min(1, 2)); 35 assertEquals(1, Math.min(2, 1)); 36 assertEquals(1, Math.min(1, 2, 3)); 37 assertEquals(1, Math.min(3, 2, 1)); 38 assertEquals(1, Math.min(2, 3, 1)); 39 assertEquals(1.1, Math.min(1.1, 2.2, 3.3)); 40 assertEquals(1.1, Math.min(3.3, 2.2, 1.1)) [all...] |
math-round.js | 28 assertEquals(0, Math.round(0)); 29 assertEquals(-0, Math.round(-0)); 30 assertEquals(Infinity, Math.round(Infinity)); 31 assertEquals(-Infinity, Math.round(-Infinity)); 32 assertNaN(Math.round(NaN)); 34 assertEquals(1, Math.round(0.5)); 35 assertEquals(1, Math.round(0.7)); 36 assertEquals(1, Math.round(1)); 37 assertEquals(1, Math.round(1.1)); 38 assertEquals(1, Math.round(1.49999)) [all...] |
/external/webkit/SunSpider/ |
UNCOVERED | 63 Math.E 64 Math.LN2 65 Math.LN10 66 Math.LOG2E 67 Math.LOG10E 68 Math.SQRT1_2 69 Math.SQRT2 70 Math.acos 71 Math.asin 72 Math.ata [all...] |