inline fun expm1(x: Double): Double
Platform and version requirements: Kotlin 1.2
inline fun expm1(x: Float): Float
Platform and version requirements: Kotlin 1.2
Computes exp(x) - 1.
This function can be implemented to produce more precise result for x near zero.
Special cases:
expm1(NaN) is NaN
expm1(+Inf) is +Inf
expm1(-Inf) is -1.0
See Also
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/expm1.html