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.atan

  • TheNumber.atan() method computes the arctangent in radians of a numeric input.

  • The method returns a Number type.

  • The input value must also be a Number type.

Computes the arctangent in radians of the input.

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

Examples

Code Editor (JavaScript)

print('Arctangent of -1e13',ee.Number(-1e13).atan());// -1.570796326 (-π/2)print('Arctangent of -1',ee.Number(-1).atan());// -0.785398163print('Arctangent of 0',ee.Number(0).atan());// 0print('Arctangent of 1',ee.Number(1).atan());// 0.785398163print('Arctangent of 1e13',ee.Number(1e13).atan());// 1.570796326 (π/2)

Python setup

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

importeeimportgeemap.coreasgeemap

Colab (Python)

# -1.570796326 (-π/2)display('Arctangent of -1e13:',ee.Number(-1e13).atan())display('Arctangent of -1:',ee.Number(-1).atan())# -0.785398163display('Arctangent of 0:',ee.Number(0).atan())# 0display('Arctangent of 1:',ee.Number(1).atan())# 0.785398163# 1.570796326 (π/2)display('Arctangent of 1e13:',ee.Number(1e13).atan())

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 2024-09-19 UTC.