English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.atanh()This method returns the hyperbolic arctangent of a number.
If the value of the passed parameter is-1to1outside the range, then this method will return NaN.
If the parameter is1If the value of the parameter is-1If the value of the passed parameter is-Infinity.
Since atanh() is a static method of Math, you should always use it asMath.atanh(), rather than as a method of the created Math object.
Math.atanh(x)
Math.atanh(0.)7);Test and see‹/›
All browsers fully support the Math.atanh() method:
Method | |||||
Math.atanh() | Is | Is | Is | Is | Is |
Parameter | Description |
---|---|
x | Number |
Return value: | Inverse hyperbolic arctangent of a given number |
---|---|
JavaScript Version: | ECMAScript 1 |
For greater than1or less than-1The value will return NaN:
Math.atanh(-2);// NaN Math.atanh(-1);// -Infinity Math.atanh(0); // 0 Math.atanh(0.)5); // 0.5493061443340548 Math.atanh(1); // Infinity Math.atanh(2); // NaNTest and see‹/›