English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.tanh()The method returns the hyperbolic tangent of a number.
Since tanh() is a static method of Math, you always use it asMath.tanh(), rather than as a method of the created Math object.
Math.tanh(x)
Math.tanh(1);Test and See‹/›
All browsers fully support the Math.tanh() method:
Method | |||||
Math.tanh() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
x | Value |
Return Value: | Hyperbolic Tangent Value of Given Number |
---|---|
JavaScript Version: | ECMAScript 1 |