Skip to content
class method

Math.cosh

(::Math::double x) -> ::Float
Math.cosh(x) → float

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
See also .cos .erf .cbrt .erfc also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0