class method
Math.acosh
(::Math::double x) -> ::Float
Math.acosh(x) → float
math.c
View on GitHub ↗
static VALUE
math_acosh(VALUE unused_obj, VALUE x)
{
double d;
d = Get_Double(x);
domain_check_min(d, 1.0, "acosh");
return DBL2NUM(acosh(d));
}
Returns the inverse hyperbolic cosine of x.
-
Domain:
[1, INFINITY]. -
Range:
[0, INFINITY].
Examples:
Example
acosh(1.0) # => 0.0 acosh(INFINITY) # => Infinity