tanh

The Math.tanh() method returns the hyperbolic tangent of a number.

Syntax

Math.tanh(x)

Returns

The hyperbolic tangent of the number.

Parameters

x (float)
A number.