/libcore/luni/src/test/resources/ |
D | math_important_numbers.csv | 481 sqrt,0x1.a61298e1e069cp0,0x1.5bf0a8b145769p1,2.718281828459045 482 sqrt,0x0.0p0,0x0.0p0,0.0 483 sqrt,-0x0.0p0,-0x0.0p0,-0.0 484 sqrt,0x1.0p0,0x1.0p0,1.0 485 sqrt,0x1.6a09e667f3bcdp-1,0x1.0p-1,0.5 486 sqrt,0x0.0p0,0x0.0p0,0.0 487 sqrt,0x1.05f8bd37c0e62p-1,0x1.0c152382d7365p-2,0.2617993877991494 488 sqrt,0x1.727bdd17583bbp-1,0x1.0c152382d7365p-1,0.5235987755982988 489 sqrt,0x1.c5bf891b4ef6ap-1,0x1.921fb54442d18p-1,0.7853981633974483 490 sqrt,0x1.05f8bd37c0e62p0,0x1.0c152382d7365p0,1.0471975511965976 [all …]
|
D | math_tests.csv | 5156 sqrt,0x1.a61298e1e069cp0,0x1.5bf0a8b145769p1,2.718281828459045 5157 sqrt,0x0.0p0,0x0.0p0,0.0 5158 sqrt,-0x0.0p0,-0x0.0p0,-0.0 5159 sqrt,0x1.0p0,0x1.0p0,1.0 5160 sqrt,0x1.6a09e667f3bcdp-1,0x1.0p-1,0.5 5161 sqrt,0x0.0p0,0x0.0p0,0.0 5162 sqrt,0x1.40d931ff62705p0,0x1.921fb54442d18p0,1.5707963267948966 5163 sqrt,0x1.c5bf891b4ef6ap0,0x1.921fb54442d18p1,3.141592653589793 5164 sqrt,0x1.15dce5d1822ccp1,0x1.2d97c7f3321d2p2,4.71238898038469 5165 sqrt,0x1.40d931ff62705p1,0x1.921fb54442d18p2,6.283185307179586
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidFloatDoubleTest.java | 89 Float sqrtm2 = Float.valueOf((float) Math.sqrt(-2.0f)); in testFloat() 90 Float sqrtm3 = Float.valueOf((float) Math.sqrt(-3.0f)); in testFloat() 144 Double sqrtm2 = Double.valueOf(Math.sqrt(-2.0)); in testDouble() 145 Double sqrtm3 = Double.valueOf(Math.sqrt(-3.0)); in testDouble()
|
D | IntrinsicTest.java | 88 StrictMath.sqrt(2.0); in testStrictMath_sqrt() 103 Math.sqrt(2.0); in testMath_sqrt()
|
D | OldAndroidStrictMathTest.java | 24 private final double HYP = StrictMath.sqrt(2.0); 543 2, StrictMath.sqrt(StrictMath.pow(StrictMath.sqrt(2), 4)), 0.0); in testSqrtD() 544 assertEquals("Incorrect root returned2", 7, StrictMath.sqrt(49), 0.0); in testSqrtD()
|
D | OldAndroidMathTest.java | 27 private static final double HYP = Math.sqrt(2.0); 455 2, Math.sqrt(Math.pow(Math.sqrt(2), 4)), 0); in testPowDD() 563 assertEquals("Incorrect root returned2", 7, Math.sqrt(49), 0); in testSqrtD()
|
/libcore/support/src/test/java/tests/util/ |
D | SummaryStatistics.java | 64 return Math.sqrt(var()); in stddev()
|
/libcore/ojluni/src/main/native/ |
D | jfdlibm.h | 48 #define sqrt jsqrt macro
|
D | fdlibm.h | 137 extern double sqrt __P((double));
|
D | StrictMath.c | 169 NATIVE_METHOD(StrictMath, sqrt, "(D)D"),
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 284 public static native double sqrt(double a); in sqrt() method in StrictMath
|
D | Math.java | 352 public static native double sqrt(double a); in sqrt() method in Math
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 364 long maxlen = ((long) Math.sqrt(b)) + 2; in isPrime()
|
D | BigIntegerTest.java | 958 long maxlen = ((long) Math.sqrt(b)) + 2; in isPrime()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 347 StrictMath.sqrt(d); in timeSqrt()
|
D | MathBenchmark.java | 429 result = Math.sqrt(d); in timeSqrt()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 32 private static final double HYP = StrictMath.sqrt(2.0); 1399 2, StrictMath.sqrt(StrictMath.pow(StrictMath.sqrt(2), 4)), 0.0); in test_sqrtD() 1400 assertEquals("Incorrect root returned2", 7, StrictMath.sqrt(49), 0.0); in test_sqrtD()
|
D | MathTest.java | 22 double HYP = Math.sqrt(2.0); 1374 2, Math.sqrt(Math.pow(Math.sqrt(2), 4)), 0); in test_powDD() 1814 assertEquals("Incorrect root returned2", 7, Math.sqrt(49), 0); in test_sqrtD()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 595 double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s); in nextGaussian()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 457 double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s); in nextGaussian()
|