Home >>Python cmath Module >Python cmath.cos() Method
Python cmath.cos() method in python is used to returns the cosine of a complex number.
Syntax:cmath.cos(x)
Parameter | Description |
---|---|
x | It is required to find the cosine of a number |
import cmath
print (cmath.cos(5 + 3j))
import cmath
print (cmath.cos(8 + 3j))