Searched refs:PI (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntrinsicTest.java | 108 Math.cos(Math.PI); in testMath_cos() 109 Math.class.getMethod("cos", double.class).invoke(null, Math.PI); in testMath_cos() 113 Math.sin(Math.PI); in testMath_sin() 114 Math.class.getMethod("sin", double.class).invoke(null, Math.PI); in testMath_sin()
|
D | OldAndroidMathTest.java | 23 import static java.lang.Math.PI; 107 assertEquals("wrong atan(1)", PI / 4, Math.atan(1d), 0); in testAtanD() 108 assertEquals("wrong atan(-1)", -PI / 4, Math.atan(-1), 0); in testAtanD() 109 assertEquals("wrong atan(+INF)", PI / 2, Math.atan(Double.POSITIVE_INFINITY), 0); in testAtanD() 110 assertEquals("wrong atan(-INF)", -PI / 2, Math.atan(Double.NEGATIVE_INFINITY), 0); in testAtanD() 125 assertEquals("wrong atan2(1, 1)", PI / 4, Math.atan2(1, 1), 0); in testAtan2DD() 126 assertEquals("wrong atan2(1, 0)", PI / 2, Math.atan2(1, 0), 0); in testAtan2DD() 127 assertEquals("wrong atan2(1, -1)", 3 * PI / 4, Math.atan2(1, -1), 0); in testAtan2DD() 128 assertEquals("wrong atan2(0, -1)", PI, Math.atan2(0, -1), 0); in testAtan2DD() 129 assertEquals("wrong atan2(-1, -1)", -3 * PI / 4, Math.atan2(-1, -1), 0); in testAtan2DD() [all …]
|
D | OldAndroidStrictMathTest.java | 586 4614256656552045848L, Double.doubleToLongBits(StrictMath.PI)); in testRandom()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | DecimalFormatBenchmark.java | 102 format(Math.PI, reps); in time_formatPi()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 99 public static final double PI = 3.14159265358979323846; field in StrictMath
|
D | Math.java | 133 public static final double PI = 3.14159265358979323846; field in Math
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | JniTest.java | 298 … Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY, (float)Math.E, (float)Math.PI, 0, -1}; in testPassingFloats() 332 Math.E, Math.PI, 0, -1}; in testPassingDoubles()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 675 printStream.print(Math.PI); in test_autoFlush_flushesEverything() 699 printStream.print(Math.PI); in test_noAutoFlush()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 1451 4614256656552045848L, Double.doubleToLongBits(StrictMath.PI)); in test_random()
|
D | MathTest.java | 1863 4614256656552045848L, Double.doubleToLongBits(Math.PI)); in test_random()
|