W3cubDocs

/Kotlin

acosh

fun acosh(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun acosh(x: Float): Float

Platform and version requirements: Kotlin 1.2

Computes the inverse hyperbolic cosine of the value x.

The returned value is positive y such that cosh(y) == x.

Special cases:

  • acosh(NaN) is NaN
  • acosh(x) is NaN when x < 1
  • acosh(+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/acosh.html