Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Number.exp
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
The Number.exp() method computes Euler's number e raised to the power of the input.
It takes a Number as input and returns a Number.
Examples demonstrate the method's use with negative, zero, and positive input values in both JavaScript and Python.
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)
display ( 'e^-1:' , ee . Number ( - 1 ) . exp ()) # 0.367879441
display ( 'e^0:' , ee . Number ( 0 ) . exp ()) # 1
display ( 'e^1:' , ee . Number ( 1 ) . exp ()) # 2.718281828
display ( 'e^2:' , ee . Number ( 2 ) . exp ()) # 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."],[],[]]