libm.info: tanh

Go backward to tan
Go up to Math
Go to the top op libm

`tanh', `tanhf'--hyperbolic tangent

*Synopsis*
     #include <math.h>
     double tanh(double X);
     float tanhf(float X);
   *Description*
`tanh' computes the hyperbolic tangent of the argument X.  Angles are
specified in radians.
   `tanh(X)' is defined as
      sinh(X)/cosh(X)
   `tanhf' is identical, save that it takes and returns `float' values.
*Returns*
The hyperbolic tangent of X is returned.
*Portability*
`tanh' is ANSI C.  `tanhf' is an extension.