cosh

Calculates the hyperbolic cosine of x.

Special Values
xcosh(x)invalid?
±∞±0.0no
  1. real cosh(real x)
    @safe pure nothrow @nogc
    real
    cosh
    (
    real x
    )
  2. double cosh(double x)
  3. float cosh(float x)

Examples

assert(cosh(0.0) == 1.0);
assert(cosh(1.0).approxEqual((E + 1.0 / E) / 2));

Meta

Suggestion Box / Bug Report