End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Math.asinh
Math.asinh(x) → Float
math.c
View on GitHub ↗
static VALUE
math_asinh(VALUE unused_obj, VALUE x)
{
return DBL2NUM(asinh(Get_Double(x)));
}
Computes the inverse hyperbolic sine of x.
Domain: (-INFINITY, INFINITY)
Codomain: (-INFINITY, INFINITY)
Example
Math.asinh(1) #=> 0.881373587019543