Reputation: 11789
Using complex number in Numpy is as simple as np.exp(1+ 2.3j). How to implement this simple notation? What is 2.3j? It's not like that it is a variable name.
Upvotes: 3
Views: 2165
Reputation: 5821
Complex numbers are a built-in data type in Python.
You can do complex number operations right inside the interpreter without numpy
if you like:
>> (2+3j) * (-1j)
(3-2j)
Upvotes: 3