Lines Matching refs:tanh
27 * @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(x)
993 // For values of x larger than 22, tanh(x) is 1.0 in double
1013 failures += Tests.testTolerance("Math.tanh(double",
1014 input, Math.tanh(input),
1016 failures += Tests.testTolerance("Math.tanh(double",
1017 -input, Math.tanh(-input),
1020 failures += Tests.testTolerance("StrictMath.tanh(double",
1021 input, StrictMath.tanh(input),
1023 failures += Tests.testTolerance("StrictMath.tanh(double",
1024 -input, StrictMath.tanh(-input),
1034 failures += Tests.testUlpDiffWithAbsBound("Math.tanh(double)",
1035 input, Math.tanh(input),
1037 failures += Tests.testUlpDiffWithAbsBound("Math.tanh(double)",
1038 -input, Math.tanh(-input),
1041 failures += Tests.testUlpDiffWithAbsBound("StrictMath.tanh(double)",
1042 input, StrictMath.tanh(input),
1044 failures += Tests.testUlpDiffWithAbsBound("StrictMath.tanh(double)",
1045 -input, StrictMath.tanh(-input),