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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With