/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidMathTest.java | 326 assertTrue(Double.isNaN(Math.log10(Double.NaN))); in testLog10D() 327 assertTrue(Double.isNaN(Math.log10(-2541.05745687234187532))); in testLog10D() 328 assertTrue(Double.isNaN(Math.log10(-0.1))); in testLog10D() 329 assertEquals(Double.POSITIVE_INFINITY, Math.log10(Double.POSITIVE_INFINITY)); in testLog10D() 330 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(0.0)); in testLog10D() 331 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(+0.0)); in testLog10D() 332 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(-0.0)); in testLog10D() 334 assertEquals(3.0, Math.log10(1000.0)); in testLog10D() 335 assertEquals(14.0, Math.log10(Math.pow(10, 14))); in testLog10D() 336 assertEquals(3.7389561269540406, Math.log10(5482.2158)); in testLog10D() [all …]
|
D | OldAndroidStrictMathTest.java | 287 .log10(Double.NaN))); in testLog10D() 289 .log10(-2541.05745687234187532))); in testLog10D() 292 .log10(Double.POSITIVE_INFINITY)); in testLog10D() 294 Double.NEGATIVE_INFINITY, StrictMath.log10(0.0)); in testLog10D() 296 Double.NEGATIVE_INFINITY, StrictMath.log10(+0.0)); in testLog10D() 298 Double.NEGATIVE_INFINITY, StrictMath.log10(-0.0)); in testLog10D() 299 assertEquals("Should return 14.0", 14.0, StrictMath.log10(StrictMath in testLog10D() 303 StrictMath.log10(5482.2158)); in testLog10D() 305 StrictMath.log10(458723662312872.125782332587)); in testLog10D() 307 StrictMath.log10(0.12348583358871)); in testLog10D() [all …]
|
/libcore/ojluni/src/main/native/ |
D | jfdlibm.h | 45 #define log10 jlog10 macro 55 #define log10 jlog10 macro
|
D | Math.c | 71 return log10(d); in Math_log10() 159 FAST_NATIVE_METHOD(Math, log10, "(D)D"),
|
D | fdlibm.h | 133 extern double log10 __P((double));
|
D | StrictMath.c | 168 NATIVE_METHOD(StrictMath, log10, "(D)D"),
|
/libcore/luni/src/test/resources/ |
D | math_important_numbers.csv | 340 log10,0x1.bcb7b1526e50ep-2,0x1.5bf0a8b145769p1,2.718281828459045 341 log10,0x0.0p0,0x1.0p0,1.0 342 log10,-0x1.34413509f79ffp-2,0x1.0p-1,0.5 343 log10,-0x1.2a0004239932p-1,0x1.0c152382d7365p-2,0.2617993877991494 344 log10,-0x1.1fbed33d3ac41p-2,0x1.0c152382d7365p-1,0.5235987755982988 345 log10,-0x1.adb63b88d410dp-4,0x1.921fb54442d18p-1,0.7853981633974483 346 log10,0x1.48261ccbcdbd2p-6,0x1.0c152382d7365p0,1.0471975511965976 347 log10,0x1.defb0abb57f05p-4,0x1.4f1a6c638d03fp0,1.3089969389957472 348 log10,0x1.91a74c4f85377p-3,0x1.921fb54442d18p0,1.5707963267948966 349 log10,0x1.0d615927e723dp-2,0x1.d524fe24f89f1p0,1.832595714594046 [all …]
|
D | math_tests.csv | 5115 log10,0x1.bcb7b1526e50ep-2,0x1.5bf0a8b145769p1,2.718281828459045 5116 log10,0x0.0p0,0x1.0p0,1.0 5117 log10,-0x1.34413509f79ffp-2,0x1.0p-1,0.5 5118 log10,0x1.91a74c4f85377p-3,0x1.921fb54442d18p0,1.5707963267948966 5119 log10,0x1.fd14db31ba3bap-2,0x1.921fb54442d18p1,3.141592653589793 5120 log10,0x1.58b30fc65ffdcp-1,0x1.2d97c7f3321d2p2,4.71238898038469 5121 log10,0x1.98ab081dd8eddp-1,0x1.921fb54442d18p2,6.283185307179586
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 522 .log10(Double.NaN))); in test_log10_D() 524 .log10(-2541.05745687234187532))); in test_log10_D() 527 .log10(Double.POSITIVE_INFINITY)); in test_log10_D() 529 Double.NEGATIVE_INFINITY, StrictMath.log10(0.0)); in test_log10_D() 531 Double.NEGATIVE_INFINITY, StrictMath.log10(+0.0)); in test_log10_D() 533 Double.NEGATIVE_INFINITY, StrictMath.log10(-0.0)); in test_log10_D() 534 assertEquals("Should return 14.0", 14.0, StrictMath.log10(StrictMath in test_log10_D() 538 StrictMath.log10(5482.2158)); in test_log10_D() 540 StrictMath.log10(458723662312872.125782332587)); in test_log10_D() 542 StrictMath.log10(0.12348583358871)); in test_log10_D() [all …]
|
D | MathTest.java | 561 assertTrue(Double.isNaN(Math.log10(Double.NaN))); in test_log10_D() 562 assertTrue(Double.isNaN(Math.log10(-2541.05745687234187532))); in test_log10_D() 563 assertTrue(Double.isNaN(Math.log10(-0.1))); in test_log10_D() 564 assertEquals(Double.POSITIVE_INFINITY, Math.log10(Double.POSITIVE_INFINITY)); in test_log10_D() 565 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(0.0)); in test_log10_D() 566 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(+0.0)); in test_log10_D() 567 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(-0.0)); in test_log10_D() 569 assertEquals(3.0, Math.log10(1000.0)); in test_log10_D() 570 assertEquals(14.0, Math.log10(Math.pow(10, 14))); in test_log10_D() 571 assertEquals(3.7389561269540406, Math.log10(5482.2158)); in test_log10_D() [all …]
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Math.annotated.java | 57 public static native double log10(double a); in log10() method in Math
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 252 public static native double log10(double a); in log10() method in StrictMath
|
D | Math.java | 319 public static native double log10(double a); in log10() method in Math
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 197 StrictMath.log10(d); in timeLog10()
|
D | MathBenchmark.java | 229 result = Math.log10(d); in timeLog10()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 1647 int elength = (int)Math.log10(m) + 1; // decimal digits in 'n' in pow() 2786 if (Math.log10(Math.abs(integer)) >= mc.getPrecision()) { in smallRound()
|