tanh - chung-leong/qb GitHub Wiki

tanh - Hyperbolic tangent

float tanh ( float $x )

tanh() returns the hyperbolic tangent of x, defined as sinh(x)/cosh(x).

Parameters:

x - The number to process. It can be a scalar or an array.

Return Value:

The hyperbolic tangent of x. If x is an array, then the return value will also be an array.

Version

1.0 and above.