ee.Number.exp
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Computes Euler's number (e) raised to the power of a specified input number."],["Returns a new number representing the result of the exponentiation."],["Accepts one argument: the input number to which 'e' is raised."],["Usage is demonstrated with examples in both JavaScript and Python within the Google Earth Engine (GEE) environment."]]],[]]