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 ซึ่งแทนไฮเปอร์โบลิกโคไซน์ของจำนวนเชิงซ้อน |
---|---|
เวอร์ชันหลาม: | 1.5 |