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
2.1m questions
2.1m answers
60 comments
57.0k users