atanh

actual fun atanh(x: Double): Double (source)

Platform and version requirements: Kotlin 1.2

inline actual fun atanh(x: Float): Float (source)

Platform and version requirements: Kotlin 1.2

Computes the inverse hyperbolic tangent of the value x.

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

Special cases:

  • tanh(NaN) is NaN
  • tanh(x) is NaN when x > 1 or x < -1
  • tanh(1.0) is +Inf
  • tanh(-1.0) is -Inf