Python cmath.atan()วิธี การ
ตัวอย่าง
ค้นหาอาร์กแทนเจนต์ของจำนวนเชิงซ้อน:
#import cmath for complex number operations
import cmath
#find
the arc tangent of a complex number
print (cmath.atan(2 + 3j))
ความหมายและการใช้งาน
วิธี การcmath.atan()
ส่งคืนแทนเจนต์ส่วนโค้งของจำนวนเชิงซ้อน
ส่วนใหญ่มีการตัดกิ่งสองสาขา:
- ขยายจาก 1j ตามแกนจินตภาพถึง ∞j ไปทางขวา
- ขยายจาก -1j ตามแกนจินตภาพถึง -∞j ไปทางซ้าย
ไวยากรณ์
cmath.atan(x)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
x | Required. A number to find the arctangent of |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่าcomplex แทนเจนต์อาร์กของจำนวนเชิงซ้อน |
---|---|
เวอร์ชันหลาม: | 2.6 |