Kann ich die Berechnung exp(1+2j) in python?
Kann ich die Berechnung 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
Du musst angemeldet sein, um einen Kommentar abzugeben.
Müssen Sie eine komplexe version dieser Funktion:
Sehen http://docs.python.org/library/cmath.html
Können Sie importieren möchten
e
aus dem math-Modul, dies zu tun.Beispiel: