cosh

Common
JVM
JS
Native
1.2
fun cosh(x: Double): Double
fun cosh(x: Float): Float

Computes the hyperbolic cosine of the value x.

Special cases:

  • cosh(NaN) is NaN
  • cosh(+Inf|-Inf) is +Inf