Synopsis
#include <math.h>
double tanh(double x);
Description

tanh calculates the hyperbolic tangent of x.

IEC 60559 math library behavior

If x is NaN, tanh returns NaN.

Portability

tanh conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).