Math.acosh()
Math.acosh(x) → number
Returns the hyperbolic arccosine of x.
Returns the hyperbolic arccosine of x. Returns NaN if x is less than 1.
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| x | number | optional | — | A number greater than or equal to 1. |
Returns
number
The hyperbolic arccosine of x.
Example
let a = Math.acosh(2); // 1.3169578969248166