Home
last modified time | relevance | path

Searched refs:PI (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DIntrinsicTest.java108 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()
DOldAndroidMathTest.java23 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 …]
DOldAndroidStrictMathTest.java586 4614256656552045848L, Double.doubleToLongBits(StrictMath.PI)); in testRandom()
/libcore/benchmarks/src/benchmarks/regression/
DDecimalFormatBenchmark.java102 format(Math.PI, reps); in time_formatPi()
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java99 public static final double PI = 3.14159265358979323846; field in StrictMath
DMath.java133 public static final double PI = 3.14159265358979323846; field in Math
/libcore/luni/src/test/java/libcore/dalvik/system/
DJniTest.java298 … 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/
DPrintStreamTest.java675 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/
DStrictMathTest.java1451 4614256656552045848L, Double.doubleToLongBits(StrictMath.PI)); in test_random()
DMathTest.java1863 4614256656552045848L, Double.doubleToLongBits(Math.PI)); in test_random()