Example 1 — Basic Use
Pass a number between -1 and 1.
console.log(Math.atanh(0)); // 0
console.log(Math.atanh(0.5)); // 0.5493061443340548
console.log(Math.atanh(-0.5)); // -0.5493061443340548
console.log(Math.atanh(0.99)); // 2.6466524123622457 How It Works
- Zero.
Math.atanh(0)is0. - Positive and negative.
0.5and-0.5give the same number with opposite signs. - Near the edge. As
xgets close to1, the result grows fast.

