Python math.asinh() メソッド

Python math 模块Python math モジュール

Python math.asinh(x)x の逆双曲線正弦を返します。

Python バージョン: 2.6

構文

math.asinh() メソッドの構文は次のとおりです:

math.asinh(x)

パラメータの説明:

  • x-- 必須。正または負の数値。x が数値でない場合は TypeError を返します。

戻り値

数値の逆双曲線正弦を表す浮動小数点数を返します。

例

以下の例では、さまざまな数値の逆双曲線正弦を返します:

例

# math パッケージをインポート
import math

# 逆双曲線正弦を出力
print(math.asinh(7))
print(math.asinh(56))
print(math.asinh(2.45))
print(math.asinh(1))

出力結果:

2.644120761058629
4.718578581151767
1.6284998192841909
0.881373587019543

Python math 模块Python math モジュール

その他の拡張