Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Math.atanh

Math.atanh(x) → Float

Computes the inverse hyperbolic tangent of x.

Domain: (-1, 1)

Codomain: (-INFINITY, INFINITY)

Example
Math.atanh(1) #=> Infinity
See also .atan2 .cbrt .atan .cos also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0