W3cubDocs

/Kotlin

exp

inline fun exp(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun exp(x: Float): Float

Platform and version requirements: Kotlin 1.2

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN
  • exp(+Inf) is +Inf
  • exp(-Inf) is 0.0

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/exp.html