tanh

inline actual fun tanh(x: Double): Double (source)

Platform and version requirements: Kotlin 1.2

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

Platform and version requirements: Kotlin 1.2

Computes the hyperbolic tangent of the value x.

Special cases:

  • tanh(NaN) is NaN
  • tanh(+Inf) is 1.0
  • tanh(-Inf) is -1.0