ee.Number.sqrt

คำนวณรากที่สองของอินพุต

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

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (JavaScript)

// Values less than 0 are invalid.
print('Square root of 100', ee.Number(100).sqrt());  // 10

การตั้งค่า Python

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

import ee
import geemap.core as geemap

Colab (Python)

# Values less than 0 are invalid.
print('Square root of 100:', ee.Number(100).sqrt().getInfo())  # 10