Math.atanh()
Math.atanh(x) → number
Returns the hyperbolic arctangent of x.
Returns the hyperbolic arctangent of x. Returns Infinity or -Infinity for 1 and -1, and NaN if x is outside that range.
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| x | number | optional | — | A number between -1 and 1. |
Returns
number
The hyperbolic arctangent of x.
Example
let a = Math.atanh(0.5); // 0.5493061443340548