Math.atanh

atanh — Returns the hyperbolic arc-tangent of a number.

Description

Math.atanh(number number)

Parameters

Name Description Type Default Optional
number number No

Examples

Example #1 – atanh example
console.log(Math.atanh(1)); // Infinity console.log(Math.atanh(4)); // NaN console.log(Math.atanh(.5)); // 0.5493061443340549 console.log(Math.atanh(-1)); // -Infinity console.log(Math.atanh(0)); // 0

External references