exp

inline fun <T : Number> Array<T>.exp(): DoubleArray

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

Example:

arrayOf(1, 2, 3, 4).exp()
// [2.718281828459045, 7.38905609893065, 20.085536923187668, 54.598150033144236]

Since

1.1.0

See also

exp

inline fun <T : Number> Iterable<T>.exp(): Iterable<Double>

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

Example:

listOf(1, 2, 3, 4).exp()
// [2.718281828459045, 7.38905609893065, 20.085536923187668, 54.598150033144236]

Since

1.1.0

See also

exp