acosh

expect fun acosh(x: Double): Double(source)
expect fun acosh(x: Float): Float(source)

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

Since Kotlin

1.2
actual inline fun acosh(x: Double): Double(source)
actual inline fun acosh(x: Float): Float(source)

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

Since Kotlin

1.2
actual fun acosh(x: Double): Double(source)
actual inline fun acosh(x: Float): Float(source)

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

Since Kotlin

1.2