JavaScript Math.atanh()
JavaScript Math.atanh()
The Math.atanh() method is used to return the hyperbolic arctangent of a number. If the value of the parameter is 1 then it will return infinity, and if the value is -1 then it will return -infinity and if the value is greater than 1 or less than -1 then the method will return NaN.
Syntax:-
Its syntax is:- Math.atanh(x)
Return:-
Its return is:- A number or Infinity or -Infinity or NaN.
Further Explanation:-
Parameter | Description |
---|---|
x | Required. A number. |