Lines Matching defs:tanh
33 static char sccsid[] = "@(#)tanh.c 8.1 (Berkeley) 6/4/93";
51 * 1. reduce x to non-negative by tanh(-x) = - tanh(x).
53 * 0 < x <= 1.e-10 : tanh(x) := x
55 * 1.e-10 < x <= 1 : tanh(x) := --------------
58 * 1 <= x <= 22.0 : tanh(x) := 1 - ---------------
60 * 22.0 < x <= INF : tanh(x) := 1.
65 * tanh(NaN) is NaN;
66 * only tanh(0)=0 is exact for finite argument.
69 * tanh(x) returns the exact hyperbolic tangent of x nearly rounded.
77 tanh(double x)
104 return tanh(x);