Can i calculate exp(1+2j) in python?
exp(1+2j) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can't convert complex to float
You need a complex version of this function:
cmath.exp(1+2j)
See http://docs.python.org/library/cmath.html
1.4m articles
1.4m replys
5 comments
57.0k users