ee.Number.asin

Oblicza w radianach arcus sinus wartości wejściowej.

WykorzystanieZwroty
Number.asin()Liczba
ArgumentTypSzczegóły
to: inputLiczbaWartość wejściowa.

Przykłady

Edytor kodu (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)

Konfiguracja Pythona

Informacje o interfejsie Python API i używaniu geemap do interaktywnego programowania znajdziesz na stronie Środowisko Python.

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)