tanh
Требования к платформе и версии: JVM (1.2), JS (1.2), Native (1.2)
fun tanh(x: Double): Double
fun tanh(x: Float): Float
Вычисляет гиперболический тангенс значения x.
Особые случаи:
-
tanh(NaN)—NaN -
tanh(+Inf)—1.0 -
tanh(-Inf)—-1.0
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/tanh.html