Lines Matching refs:tanh
18 * 0. tanh(x) is defined to be -----------
21 * 1. reduce x to non-negative by tanh(-x) = -tanh(x).
22 * 2. 0 <= x < 2**-28 : tanh(x) := x with inexact if x != 0
24 * 2**-28 <= x < 1 : tanh(x) := -----; t = expm1(-2x)
27 * 1 <= x < 22 : tanh(x) := 1 - -----; t = expm1(2x)
29 * 22 <= x <= INF : tanh(x) := 1.
32 * tanh(NaN) is NaN;
33 * only tanh(0)=0 is exact for finite argument.
45 tanh(double x)
55 if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */
56 else return one/x-one; /* tanh(NaN) = NaN */
62 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */
79 __weak_reference(tanh, tanhl);