Skip to content
Chung Leong edited this page Jan 10, 2022 · 4 revisions

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.

Clone this wiki locally