Computes the Euler's number e raised to the power of the input.
Usage | Returns | Number.exp() | Number |
Argument | Type | Details | this: input | Number | The input value. |
Examples
Code Editor (JavaScript)
print('e^-1', ee.Number(-1).exp()); // 0.367879441
print('e^0', ee.Number(0).exp()); // 1
print('e^1', ee.Number(1).exp()); // 2.718281828
print('e^2', ee.Number(2).exp()); // 7.389056098
Python setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
import ee
import geemap.core as geemap
Colab (Python)
print('e^-1:', ee.Number(-1).exp().getInfo()) # 0.367879441
print('e^0:', ee.Number(0).exp().getInfo()) # 1
print('e^1:', ee.Number(1).exp().getInfo()) # 2.718281828
print('e^2:', ee.Number(2).exp().getInfo()) # 7.389056098