Searched refs:tanh (Results 1 - 7 of 7) sorted by relevance

/openjdk7/jdk/src/share/native/java/lang/fdlibm/src/
H A Ds_tanh.c33 * 0. tanh(x) is defined to be -----------
36 * 1. reduce x to non-negative by tanh(-x) = -tanh(x).
37 * 2. 0 <= x <= 2**-55 : tanh(x) := x*(one+x)
39 * 2**-55 < x <= 1 : tanh(x) := -----; t = expm1(-2x)
42 * 1 <= x <= 22.0 : tanh(x) := 1- ----- ; t=expm1(2x)
44 * 22.0 < x <= INF : tanh(x) := 1.
47 * tanh(NaN) is NaN;
48 * only tanh(0)=0 is exact for finite argument.
60 double tanh(doubl function
[all...]
/openjdk7/jdk/test/java/lang/Math/
H A DHyperbolicTests.java27 * @summary Tests for {Math, StrictMath}.{sinh, cosh, tanh}
757 * Test accuracy of {Math, StrictMath}.tanh. The specified
760 * The defintion of tanh(x) is
764 * The series expansion of tanh(x) =
770 * 1. For large values of x tanh(x) ~= signum(x)
772 * 2. For small values of x, tanh(x) ~= x.
774 * Additionally, tanh is an odd function; tanh(-x) = -tanh(x).
788 // x tanh(
[all...]
/openjdk7/jdk/src/share/native/java/lang/fdlibm/include/
H A Djfdlibm.h58 #define tanh jtanh macro
H A Dfdlibm.h127 extern double tanh __P((double));
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java1101 * that the absolute value of the exact tanh is always less than
1121 * The result of {@code tanh} for any finite input must have
1123 * exact result of tanh is within 1/2 of an ulp of the limit value
1131 public static double tanh(double x) { method in class:Math
1132 return StrictMath.tanh(x);
H A DStrictMath.java57 * {@code sinh}, {@code cosh}, {@code tanh},
1085 * that the absolute value of the exact tanh is always less than
1108 public static native double tanh(double x); method in class:StrictMath
/openjdk7/jdk/test/java/lang/StrictMath/
H A DHyperbolicTests.java27 * @summary Tests for StrictMath.{sinh, cosh, tanh}
34 * sinh, cos, and tanh, including the FDLIBM-based ones required by
57 return Tests.test("StrictMath.tanh(double)", input,
58 StrictMath.tanh(input), expected);

Completed in 43 milliseconds