The acosh() method returns the hyperbolic arccosine of a number.
The acosh() method returns the hyperbolic arccosine of a number.
If the parameter x is less than 1, the method will return NaN.
Math.acosh(x)
Parameter | Require | Description |
---|---|---|
x | Required. | A number |
A Number, or NaN if the parameter is less than 1
Return the hyperbolic arccosine of a number:
//display the hyperbolic arccosine of 2
console.log(Math.acosh(2));