Home
last modified time | relevance | path

Searched refs:cbrt (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidStrictMathTest.java96 .cbrt(Double.NaN))); in testCbrtD()
99 .cbrt(Double.POSITIVE_INFINITY)); in testCbrtD()
102 .cbrt(Double.NEGATIVE_INFINITY)); in testCbrtD()
104 .doubleToLongBits(StrictMath.cbrt(0.0))); in testCbrtD()
106 .doubleToLongBits(StrictMath.cbrt(+0.0))); in testCbrtD()
108 .doubleToLongBits(StrictMath.cbrt(-0.0))); in testCbrtD()
110 assertEquals("Should return 3.0", 3.0, StrictMath.cbrt(27.0)); in testCbrtD()
112 StrictMath.cbrt(12345.6)); in testCbrtD()
114 5.643803094122362E102, StrictMath.cbrt(Double.MAX_VALUE)); in testCbrtD()
115 assertEquals("Should return 0.01", 0.01, StrictMath.cbrt(0.000001)); in testCbrtD()
[all …]
DOldAndroidMathTest.java156 .cbrt(Double.NaN))); in testCbrtD()
159 .cbrt(Double.POSITIVE_INFINITY), 0D); in testCbrtD()
162 .cbrt(Double.NEGATIVE_INFINITY), 0D); in testCbrtD()
164 .cbrt(0.0))); in testCbrtD()
166 .cbrt(+0.0))); in testCbrtD()
168 .cbrt(-0.0))); in testCbrtD()
170 assertEquals("Should return 3.0", 3.0, Math.cbrt(27.0), 0D); in testCbrtD()
172 Math.cbrt(12345.6), 0D); in testCbrtD()
174 5.643803094122362E102, Math.cbrt(Double.MAX_VALUE), 0D); in testCbrtD()
175 assertEquals("Should return 0.01", 0.01, Math.cbrt(0.000001), 0D); in testCbrtD()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java131 .cbrt(Double.NaN))); in test_cbrt_D()
134 .cbrt(Double.POSITIVE_INFINITY)); in test_cbrt_D()
137 .cbrt(Double.NEGATIVE_INFINITY)); in test_cbrt_D()
139 .doubleToLongBits(StrictMath.cbrt(0.0))); in test_cbrt_D()
141 .doubleToLongBits(StrictMath.cbrt(+0.0))); in test_cbrt_D()
143 .doubleToLongBits(StrictMath.cbrt(-0.0))); in test_cbrt_D()
145 assertEquals("Should return 3.0", 3.0, StrictMath.cbrt(27.0)); in test_cbrt_D()
147 StrictMath.cbrt(12345.6)); in test_cbrt_D()
149 5.643803094122362E102, StrictMath.cbrt(Double.MAX_VALUE)); in test_cbrt_D()
150 assertEquals("Should return 0.01", 0.01, StrictMath.cbrt(0.000001)); in test_cbrt_D()
[all …]
DMathTest.java123 assertTrue(Double.isNaN(Math.cbrt(Double.NaN))); in test_cbrt_D()
124 assertEquals(Double.POSITIVE_INFINITY, Math.cbrt(Double.POSITIVE_INFINITY), 0D); in test_cbrt_D()
125 assertEquals(Double.NEGATIVE_INFINITY, Math.cbrt(Double.NEGATIVE_INFINITY), 0D); in test_cbrt_D()
126 assertEquals(Double.doubleToLongBits(0.0), Double.doubleToLongBits(Math.cbrt(0.0))); in test_cbrt_D()
127 assertEquals(Double.doubleToLongBits(+0.0), Double.doubleToLongBits(Math.cbrt(+0.0))); in test_cbrt_D()
128 assertEquals(Double.doubleToLongBits(-0.0), Double.doubleToLongBits(Math.cbrt(-0.0))); in test_cbrt_D()
130 assertEquals(3.0, Math.cbrt(27.0), 0D); in test_cbrt_D()
131 assertEquals(23.111993172558684, Math.cbrt(12345.6), Math.ulp(23.111993172558684)); in test_cbrt_D()
132 assertEquals(5.643803094122362E102, Math.cbrt(Double.MAX_VALUE), 0D); in test_cbrt_D()
133 assertEquals(0.01, Math.cbrt(0.000001), 0D); in test_cbrt_D()
[all …]
/libcore/ojluni/src/main/native/
DMath.c81 return cbrt(d); in Math_cbrt()
150 FAST_NATIVE_METHOD(Math, cbrt, "(D)D"),
Djfdlibm.h49 #define cbrt jcbrt macro
Dfdlibm.h161 extern double cbrt __P((double));
DStrictMath.c170 NATIVE_METHOD(StrictMath, cbrt, "(D)D"),
/libcore/ojluni/annotations/mmodule/java/lang/
DMath.annotated.java61 public static native double cbrt(double a); in cbrt() method in Math
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java295 public static native double cbrt(double a); in cbrt() method in StrictMath
DMath.java369 public static native double cbrt(double a); in cbrt() method in Math
/libcore/benchmarks/src/benchmarks/regression/
DStrictMathBenchmark.java109 StrictMath.cbrt(d); in timeCbrt()
DMathBenchmark.java101 result = Math.cbrt(d); in timeCbrt()
/libcore/luni/src/test/resources/
Dmath_java_only.csv3 cbrt,-0x1.28c16bdbe5b02p341,-0x1.8ec3beb2d4185p1023
4 cbrt,-0x1.2e14b2c0fd516p341,-0x1.a49ea827e7d05p1023
5 cbrt,-0x1.5e34a2f636f55p340,-0x1.47afe754a89fep1021
6 cbrt,-0x1.f8a0db364f2c1p340,-0x1.ea33b08c7fbfbp1022
7 cbrt,0x1.13fe315a92f2fp341,0x1.40c8f2c416881p1023
8 cbrt,-0x1.f058cbbc49543p340,-0x1.d2762c5e7c22bp1022
9 cbrt,0x1.4785ce183fe27p340,0x1.0c0c8b67b7daep1021
10 cbrt,-0x1.250fa24b85fe4p341,-0x1.800e50b80ea85p1023
11 cbrt,0x1.377220bf3a7dfp340,0x1.ccf6eeb86909cp1020
12 cbrt,-0x1.c98f0eb5c5dcbp340,-0x1.6d6d5ccb7231fp1022
[all …]