English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.atanh() Method

 JavaScript Math Object

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.

Syntax:

Math.atanh(x)
Math.atanh(0.)7);
Test and see‹/›

Browser Compatibility

All browsers fully support the Math.atanh() method:

Method
Math.atanh()IsIsIsIsIs

Parameter Value

ParameterDescription
xNumber

Technical Details

Return value:Inverse hyperbolic arctangent of a given number
JavaScript Version:ECMAScript 1

More examples

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); // NaN
Test and see‹/›

 JavaScript Math Object