# 2203.py import cmath a=4; b=2; print a+b*1j # (4+2j) z=4+5j; print abs(z) # 6.40312423743 print cmath.exp(1j*z) # (-0.00440421607367-0.00509929510216j) print cmath.cos(z)+1j*cmath.sin(z) # (-0.00440421607367-0.00509929510217j)