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