Run »
#import cmath for complex number operations import cmath #find the cosine of a complex number print (cmath.cos(2 + 3j))
(-4.189625690968807-9.109227893755337j)