ee.Number.asin

คำนวณอาร์กไซน์ของอินพุตในหน่วยเรเดียน

การใช้งานการคืนสินค้า
Number.asin()ตัวเลข
อาร์กิวเมนต์ประเภทรายละเอียด
ดังนี้ inputตัวเลขค่าอินพุต

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (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

ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า สภาพแวดล้อม 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)