Home
last modified time | relevance | path

Searched refs:tanh (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/resources/
Dmath_important_numbers.csv568 tanh,0x1.fb8f76b1e2ab6p-1,0x1.5bf0a8b145769p1,2.718281828459045
569 tanh,-0x1.fb8f76b1e2ab6p-1,-0x1.5bf0a8b145769p1,-2.718281828459045
570 tanh,0x0.0p0,0x0.0p0,0.0
571 tanh,-0x0.0p0,-0x0.0p0,-0.0
572 tanh,0x1.85efab514f394p-1,0x1.0p0,1.0
573 tanh,-0x1.85efab514f394p-1,-0x1.0p0,-1.0
574 tanh,-0x1.d9353d7568af3p-2,-0x1.0p-1,-0.5
575 tanh,0x1.d9353d7568af3p-2,0x1.0p-1,0.5
576 tanh,-0x1.ffff15f81f9abp-1,-0x1.921fb54442d18p2,-6.283185307179586
577 tanh,-0x1.fffe74ef7ed71p-1,-0x1.815e630c155e1p2,-6.021385919380436
[all …]
Dmath_tests.csv5183 tanh,0x1.fb8f76b1e2ab6p-1,0x1.5bf0a8b145769p1,2.718281828459045
5184 tanh,-0x1.fb8f76b1e2ab6p-1,-0x1.5bf0a8b145769p1,-2.718281828459045
5185 tanh,0x0.0p0,0x0.0p0,0.0
5186 tanh,-0x0.0p0,-0x0.0p0,-0.0
5187 tanh,0x1.85efab514f394p-1,0x1.0p0,1.0
5188 tanh,-0x1.85efab514f394p-1,-0x1.0p0,-1.0
5189 tanh,-0x1.d9353d7568af3p-2,-0x1.0p-1,-0.5
5190 tanh,0x1.d9353d7568af3p-2,0x1.0p-1,0.5
5191 tanh,-0x1.ffff15f81f9abp-1,-0x1.921fb54442d18p2,-6.283185307179586
5192 tanh,-0x1.ffead8c8b7e1ep-1,-0x1.2d97c7f3321d2p2,-4.71238898038469
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidStrictMathTest.java557 assertTrue(Double.isNaN(StrictMath.tanh(Double.NaN))); in testTanhD()
559 .tanh(Double.POSITIVE_INFINITY), 0D); in testTanhD()
561 .tanh(Double.NEGATIVE_INFINITY), 0D); in testTanhD()
563 .doubleToLongBits(StrictMath.tanh(0.0))); in testTanhD()
565 .doubleToLongBits(StrictMath.tanh(+0.0))); in testTanhD()
567 .doubleToLongBits(StrictMath.tanh(-0.0))); in testTanhD()
569 assertEquals("Should return 1.0", 1.0, StrictMath.tanh(1234.56), 0D); in testTanhD()
570 assertEquals("Should return -1.0", -1.0, StrictMath.tanh(-1234.56), 0D); in testTanhD()
572 9.999999999996666E-7, StrictMath.tanh(0.000001), 0D); in testTanhD()
574 StrictMath.tanh(2.33482), 0D); in testTanhD()
[all …]
DOldAndroidMathTest.java575 assertTrue("Should return NaN", Double.isNaN(Math.tanh(Double.NaN))); in testTanhD()
577 .tanh(Double.POSITIVE_INFINITY), 0D); in testTanhD()
579 .tanh(Double.NEGATIVE_INFINITY), 0D); in testTanhD()
581 .tanh(0.0))); in testTanhD()
583 .doubleToLongBits(Math.tanh(+0.0))); in testTanhD()
585 .doubleToLongBits(Math.tanh(-0.0))); in testTanhD()
587 assertEquals("Should return 1.0", 1.0, Math.tanh(1234.56), 0D); in testTanhD()
588 assertEquals("Should return -1.0", -1.0, Math.tanh(-1234.56), 0D); in testTanhD()
590 9.999999999996666E-7, Math.tanh(0.000001), 0D); in testTanhD()
592 .tanh(2.33482), 0D); in testTanhD()
[all …]
/libcore/ojluni/src/main/native/
DMath.c111 return tanh(d); in Math_tanh()
167 FAST_NATIVE_METHOD(Math, tanh, "(D)D"),
Djfdlibm.h58 #define tanh jtanh macro
Dfdlibm.h127 extern double tanh __P((double));
DStrictMath.c176 NATIVE_METHOD(StrictMath, tanh, "(D)D"),
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java1419 assertTrue(Double.isNaN(StrictMath.tanh(Double.NaN))); in test_tanh_D()
1421 .tanh(Double.POSITIVE_INFINITY), 0D); in test_tanh_D()
1423 .tanh(Double.NEGATIVE_INFINITY), 0D); in test_tanh_D()
1425 .doubleToLongBits(StrictMath.tanh(0.0))); in test_tanh_D()
1427 .doubleToLongBits(StrictMath.tanh(+0.0))); in test_tanh_D()
1429 .doubleToLongBits(StrictMath.tanh(-0.0))); in test_tanh_D()
1431 assertEquals("Should return 1.0", 1.0, StrictMath.tanh(1234.56), 0D); in test_tanh_D()
1432 assertEquals("Should return -1.0", -1.0, StrictMath.tanh(-1234.56), 0D); in test_tanh_D()
1434 9.999999999996666E-7, StrictMath.tanh(0.000001), 0D); in test_tanh_D()
1436 StrictMath.tanh(2.33482), 0D); in test_tanh_D()
[all …]
DMathTest.java1832 assertTrue("Should return NaN", Double.isNaN(Math.tanh(Double.NaN))); in test_tanh_D()
1834 .tanh(Double.POSITIVE_INFINITY), 0D); in test_tanh_D()
1836 .tanh(Double.NEGATIVE_INFINITY), 0D); in test_tanh_D()
1838 .tanh(0.0))); in test_tanh_D()
1840 .doubleToLongBits(Math.tanh(+0.0))); in test_tanh_D()
1842 .doubleToLongBits(Math.tanh(-0.0))); in test_tanh_D()
1844 assertEquals("Should return 1.0", 1.0, Math.tanh(1234.56), 0D); in test_tanh_D()
1845 assertEquals("Should return -1.0", -1.0, Math.tanh(-1234.56), 0D); in test_tanh_D()
1847 9.999999999996666E-7, Math.tanh(0.000001), 0D); in test_tanh_D()
1849 .tanh(2.33482), 0D); in test_tanh_D()
[all …]
/libcore/ojluni/annotations/mmodule/java/lang/
DMath.annotated.java154 public static native double tanh(double x); in tanh() method in Math
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java1291 public static native double tanh(double x); in tanh() method in StrictMath
DMath.java1674 public static native double tanh(double x); in tanh() method in Math
/libcore/benchmarks/src/benchmarks/regression/
DStrictMathBenchmark.java359 StrictMath.tanh(d); in timeTanh()
DMathBenchmark.java445 result = Math.tanh(d); in timeTanh()