Python cmath.tanh()วิธี การ
ตัวอย่าง
ค้นหาไฮเปอร์โบลิกแทนเจนต์ของจำนวนเชิงซ้อน:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
ความหมายและการใช้งาน
วิธี การcmath.tanh()
ส่งคืนไฮเปอร์โบลิกแทนเจนต์ของจำนวนเชิงซ้อน
ไวยากรณ์
cmath.tanh(x)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่าcomplex ซึ่งแทนเจนต์ไฮเปอร์โบลิกของจำนวนเชิงซ้อน |
---|---|
เวอร์ชันหลาม: | 1.5 |