Python cmath.cosh() Metode
Contoh
Tentukan kosinus hiperbolik dari bilangan kompleks:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definisi dan Penggunaan
Metode cmath.cosh()
ini mengembalikan kosinus hiperbolik dari bilangan kompleks.
Sintaksis
cmath.cosh(x)
Nilai Parameter
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Detail Teknis
Nilai Kembali: | Nilai complex , yang mewakili kosinus hiperbolik dari bilangan kompleks |
---|---|
Versi Python: | 1.5 |