Python cmath.cosh()メソッド
例
複素数の双曲線正弦を求めます。
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
定義と使用法
このcmath.cosh()
メソッドは、複素数の双曲線正弦を返します。
構文
cmath.cosh(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
技術的な詳細
戻り値: | complex 複素数の双曲線正弦を表す値 |
---|---|
Pythonバージョン: | 1.5 |