atanh

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

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

Since Kotlin

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

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

Since Kotlin

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

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

Since Kotlin

1.2
actual external fun atanh(x: Double): Double(source)
actual external fun atanh(x: Float): Float(source)

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

Since Kotlin

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

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

Since Kotlin

1.8

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

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

Since Kotlin

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

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

Since Kotlin

1.8

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

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

Since Kotlin

1.8