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