W3cubDocs

/Kotlin

cosh

inline fun cosh(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun cosh(x: Float): Float

Platform and version requirements: Kotlin 1.2

Computes the hyperbolic cosine of the value x.

Special cases:

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

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/cosh.html