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