Python math.cosh()メソッド
例
異なる数の双曲線正弦を見つけます。
# Import math Library
import math
# Return the hyperbolic cosine of
different numbers
print (math.cosh(1))
print (math.cosh(8.90))
print (math.cosh(0))
print (math.cosh(1.52))
定義と使用法
このmath.cosh()
メソッドは、数値の双曲線コサインを返します((exp(number)+ exp(-number))/ 2に相当)。
構文
math.cosh(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
技術的な詳細
戻り値: | 数値の双曲線正弦を表すfloat 値 |
---|---|
Pythonバージョン: | 1.4 |