cosh

fun cosh(value: Double): Double(source)

Returns the hyperbolic cosine of a number. The hyperbolic cosine of value is defined to be (ex + e-x)/2.0 where e is Euler's number, approximately 2.71828183.

Special cases:

  • If the argument is NaN, then the result is NaN.

  • If the argument is infinite, then the result is positive infinity.

  • If the argument is zero, then the result is 1.0.

Return

The hyperbolic cosine of value.

Parameters

value

The number whose hyperbolic cosine is to be returned.

See also