Python math.sinh() メソッド

Python math 模块Python math モジュール

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

Python バージョン: 1.4

構文

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

math.sinh(x)

パラメータの説明:

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

戻り値

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

例

次の例では、異なる数値の双曲線正弦を返します:

例

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

# 双曲線正弦を出力
print(math.sinh(0.00))
print(math.sinh(-23.45))
print(math.sinh(23))
print(math.sinh(1.00))
print(math.sinh(math.pi))

出力結果:

0.0
-7641446994.979367
4872401723.124452
1.1752011936438014
11.548739357257746

Python math 模块Python math モジュール

その他の拡張