JavaScript tanh() Method

Definition and Usage

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

Example

Returns the hyperbolic tangent of a number:

Math.tanh(1);

Try It Yourself

Syntax

Math.tanh(x)

Parameter Value

Parameter Description
x Required. Number.

Technical Details

Return Value: Numeral.
Versyon ng JavaScript: ECMAScript 6

Suporta ng Browser

Mga Paraan Chrome Edge Firefox Safari Opera
tanh() 38 12 25 8 25

Kaugnay na Pahina

Tuturo:JavaScript Matematika