Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Number.exp

  • TheNumber.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.

UsageReturns
Number.exp()Number
ArgumentTypeDetails
this:inputNumberThe input value.

Examples

Code Editor (JavaScript)

print('e^-1',ee.Number(-1).exp());// 0.367879441print('e^0',ee.Number(0).exp());// 1print('e^1',ee.Number(1).exp());// 2.718281828print('e^2',ee.Number(2).exp());// 7.389056098

Python setup

See the Python Environment page for information on the Python API and usinggeemap for interactive development.

importeeimportgeemap.coreasgeemap

Colab (Python)

display('e^-1:',ee.Number(-1).exp())# 0.367879441display('e^0:',ee.Number(0).exp())# 1display('e^1:',ee.Number(1).exp())# 2.718281828display('e^2:',ee.Number(2).exp())# 7.389056098

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-10-06 UTC.