← Docs
kotlin-stdlib / kotlin.math / atanh

atanh

Common
JVM
JS
Native
1.2
fun atanh ( x : Double ) : Double
(Common source) (JVM source) (JS source) (Native source)
fun atanh ( x : Float ) : Float
(Common source) (JVM source) (JS source) (Native 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
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .