お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Number.tanh
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
入力の双曲線正接を計算します。
例
コードエディタ(JavaScript)
// Input angle in radians.
print('Hyperbolic tangent of -5', ee.Number(-5).tanh()); // -0.999909204
print('Hyperbolic tangent of -1', ee.Number(-1).tanh()); // -0.761594155
print('Hyperbolic tangent of 0', ee.Number(0).tanh()); // 0
print('Hyperbolic tangent of 1', ee.Number(1).tanh()); // 0.761594155
print('Hyperbolic tangent of 5', ee.Number(5).tanh()); // 0.999909204
// Convert degrees to radians.
var degrees = 45;
var radians = degrees * (Math.PI/180);
print('Hyperbolic tangent of 45 degrees',
ee.Number(radians).tanh()); // 0.655794202
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
import math
# Input angle in radians.
display('Hyperbolic tangent of -5:',
ee.Number(-5).tanh()) # -0.999909204
display('Hyperbolic tangent of -1:',
ee.Number(-1).tanh()) # -0.761594155
display('Hyperbolic tangent of 0:', ee.Number(0).tanh()) # 0
display('Hyperbolic tangent of 1:', ee.Number(1).tanh()) # 0.761594155
display('Hyperbolic tangent of 5:', ee.Number(5).tanh()) # 0.999909204
# Convert degrees to radians.
degrees = 45
radians = degrees * (math.pi/180)
display('Hyperbolic tangent of 45 degrees:',
ee.Number(radians).tanh()) # 0.655794202
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-10-30 UTC。
[null,null,["最終更新日 2025-10-30 UTC。"],[],[]]