ee.Number.atan

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.785398163
print('Arctangent of 0', ee.Number(0).atan());  // 0
print('Arctangent of 1', ee.Number(1).atan());  // 0.785398163
print('Arctangent of 1e13', ee.Number(1e13).atan());  // 1.570796326 (π/2)

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)

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