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
math.c
View on GitHub ↗
static VALUE
math_asinh(VALUE unused_obj, VALUE x)
{
return DBL2NUM(asinh(Get_Double(x)));
}
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