ee.Number.asin

Computes the arc sine in radians of the input.

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

Examples

Code Editor (JavaScript)

// The domain of arcsine is [-1,1], inputs outside the domain are invalid.
print('Arcsine of -1', ee.Number(-1).asin());  // -1.570796326 (-π/2)
print('Arcsine of 0', ee.Number(0).asin());  // 0
print('Arcsine of 1', ee.Number(1).asin());  // 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)

# The domain of arcsine is [-1,1], inputs outside the domain are invalid.
print('Arcsine of -1:', ee.Number(-1).asin().getInfo())  # -1.570796326 (-π/2)
print('Arcsine of 0:', ee.Number(0).asin().getInfo())  # 0
print('Arcsine of 1:', ee.Number(1).asin().getInfo())  # 1.570796326 (π/2)