JavaScript atanh() method
- Previous Page atan2()
- Next Page cbrt()
- Go to the Previous Level JavaScript Math Reference Manual
Definition and usage
atanh()
The method returns the hyperbolic arctangent of a number.
Note:If the parameter x is greater than 1 or less than -1, this method will return NaN.
Note:If the parameter x is 1, this method will return Infinity.
Note:If the parameter x is -1, this method will return -Infinity.
Syntax
Math.atanh(x)
Parameter value
Parameter | Description |
---|---|
x | Required. Number. |
Technical details
Return value: | Number, or NaN, or Infinity, or -Infinity. |
---|---|
JavaScript version: | ECMAScript 6 |
Browser Support
Math.atanh()
Is an ES6 Feature (JavaScript 2015). All modern browsers support it:
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Support | Support | Support | Support | Support |
Related Pages
Tutorial:JavaScript Math
- Previous Page atan2()
- Next Page cbrt()
- Go to the Previous Level JavaScript Math Reference Manual