Phương thức Python cmath.cos ()
Thí dụ
Tìm cosin của một số phức:
#import cmath for complex number operations
import cmath
#find
the cosine of a complex number
print (cmath.cos(2 + 3j))
Định nghĩa và Cách sử dụng
Phương cmath.cos()
thức trả về cosine của một số phức.
Cú pháp
cmath.cos(x)
Giá trị tham số
Parameter | Description |
---|---|
x | Required. A number to find the cosine of |
Chi tiết kỹ thuật
Giá trị trả lại: | Một complex giá trị, đại diện cho cosine của một số phức |
---|---|
Phiên bản Python: | 1,5 |