Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Math.asinh

(::Math::double x) -> ::Float
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.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0