ee.Number.atan
Computes the arctangent in radians of the input.
Usage | Returns |
---|
Number.atan() | Number |
Argument | Type | Details |
---|
this: input | Number | The input value. |
Examples
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
# -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())
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 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["`Number.atan()` calculates the arctangent of a given input number in radians."],["The input to `Number.atan()` is a single number, and the function returns the arctangent of that number."],["The arctangent is the inverse of the tangent function, meaning it returns the angle whose tangent is the input value."],["The function provides accurate calculations across a wide range of input values, including large positive and negative numbers, as well as zero."]]],["The `atan()` function calculates the arctangent of a given number in radians. It accepts a numerical input and returns the corresponding arctangent value as a number. The function is demonstrated with examples using inputs of -1e13, -1, 0, 1, and 1e13, showcasing the output range from -π/2 to π/2. The code examples show implementation for JavaScript and Python, where the method is called on an input number, `Number.atan()` or `ee.Number().atan()`.\n"]]