JavaScript atanh() Method
Definition and Usage
The atanh() method returns the hyperbolic arctangent of a number.
Note: If the parameter x is greater than 1, or less than -1, the method will return NaN.
Note: If the parameter x is 1, the method will return Infinity.
Note: If the parameter x is -1, the method will return -Infinity.
Browser Support
Method | |||||
---|---|---|---|---|---|
atanh() | 38 | 12 | 25 | 8 | 25 |
Syntax
Math.atanh(x)
Parameter Values
Parameter | Description |
---|---|
x | Required. A number |
Technical Details
Return Value: | A Number, or NaN, or Infinity, or -Infinity |
---|---|
JavaScript Version: | ECMAScript 6 |