ee.Number.acos

計算輸入值的反餘弦值 (以弧度表示)。

用量傳回
Number.acos()數字
引數類型詳細資料
這個:input數字輸入值。

範例

程式碼編輯器 (JavaScript)

// The domain of arccosine is [-1,1], inputs outside the domain are invalid.
print('Arccosine of -1', ee.Number(-1).acos());  // 3.141592653 (π)
print('Arccosine of 0', ee.Number(0).acos());  // 1.570796326 (π/2)
print('Arccosine of 1', ee.Number(1).acos());  // 0

Python 設定

請參閱 Python 環境頁面,瞭解 Python API 和如何使用 geemap 進行互動式開發。

import ee
import geemap.core as geemap

Colab (Python)

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