Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/resources/
Dmath_important_numbers.csv481 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 …]
Dmath_tests.csv5156 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/
DOldAndroidFloatDoubleTest.java89 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()
DIntrinsicTest.java88 StrictMath.sqrt(2.0); in testStrictMath_sqrt()
103 Math.sqrt(2.0); in testMath_sqrt()
DOldAndroidStrictMathTest.java24 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()
DOldAndroidMathTest.java27 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/
DSummaryStatistics.java64 return Math.sqrt(var()); in stddev()
/libcore/ojluni/src/main/native/
Djfdlibm.h48 #define sqrt jsqrt macro
Dfdlibm.h137 extern double sqrt __P((double));
DStrictMath.c169 NATIVE_METHOD(StrictMath, sqrt, "(D)D"),
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java284 public static native double sqrt(double a); in sqrt() method in StrictMath
DMath.java352 public static native double sqrt(double a); in sqrt() method in Math
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DOldBigIntegerTest.java364 long maxlen = ((long) Math.sqrt(b)) + 2; in isPrime()
DBigIntegerTest.java958 long maxlen = ((long) Math.sqrt(b)) + 2; in isPrime()
/libcore/benchmarks/src/benchmarks/regression/
DStrictMathBenchmark.java347 StrictMath.sqrt(d); in timeSqrt()
DMathBenchmark.java429 result = Math.sqrt(d); in timeSqrt()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java32 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()
DMathTest.java22 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/
DRandom.java595 double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s); in nextGaussian()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java457 double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s); in nextGaussian()