Python math.atanh()メソッド
例
さまざまな数の双曲線アークタンジェント値を見つけます。
#Import math Library
import math
#print the hyperbolic
arctangent of different numbers
print(math.atanh(0.59))
print(math.atanh(-0.12))
定義と使用法
このmath.atanh()
メソッドは、数値の逆双曲線正接を返します。
注:渡されるパラメーターは、math.atanh()
-0.99から0.99の間にある必要があります。
構文
math.atanh(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A positive or negative number between -0.99 and 0.99. If x is not a number, it returns a TypeError |
技術的な詳細
戻り値: | 数値の逆双曲線正接を表すfloat 値 |
---|---|
Pythonバージョン: | 2.62.6 |