Skip to content

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

class method

Math.asinh

Math.asinh(x) → float

Returns the inverse hyperbolic sine of x.

  • Domain: [-INFINITY, INFINITY].

  • Range: [-INFINITY, INFINITY].

Examples:

Example
asinh(-INFINITY) # => -Infinity
asinh(0.0)       # => 0.0
asinh(INFINITY)  # => Infinity
See also .asin .atan .acosh .atan2 also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0