import numpy as npres = np.fft.fft([0, 4, 0, 0])print resprint np.fft.ifft(res)
Standard input is empty
[ 4.+0.j 0.-4.j -4.+0.j 0.+4.j] [0.+0.j 4.+0.j 0.+0.j 0.+0.j]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!