JS Built-ins
← Math72 / 215
Mathatanhintermediate

Math.atanh(0.5) β‰ˆ 0.549

πŸ“– Usage Example
// Inverse hyperbolic tangent (input in (-1, 1))
Math.atanh(0)    // β†’ 0
Math.atanh(0.5)  // β†’ 0.5493...

Use Math.atanh() to compute the inverse hyperbolic tangent of a number strictly between -1 and 1.

Math.atanh(x)

Math.atanh(0.5) returns approximately 0.5493.

Challenge: Compute and verify Math.atanh(0.5).

πŸ’‘ Hints (2)
  • β€’ atanh(x) = (1/2) * ln((1+x)/(1-x))
  • β€’ Valid only for |x| < 1