`tanh`

, `tanhf`

---hyperbolic tangent#include <math.h> double tanh(doublex); float tanhf(floatx);

**Description**

`tanh`

computes the hyperbolic tangent of
the argument `x`. Angles are specified in radians.

`tanh(`

is defined as
`x`)

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.

Go to the first, previous, next, last section, table of contents.