Re: how to plot the FFT of a list of values

2020-12-07 Thread Thomas Jollans
On 05/12/2020 23:08, Christian Gollwitzer wrote: Am 05.12.20 um 18:16 schrieb Boris Dorestand: I have 16 values of the period sequence 1, 2, 4, 8, 1, 2, 4, 8, ...  I compute its fourier transform using from scipy import fft, ifft x = [1,2,4,8,1,2,4,8] fft(x) array([ 30. +0.j,   0. +0.j, 

Re: how to plot the FFT of a list of values

2020-12-05 Thread Christian Gollwitzer
Am 05.12.20 um 18:16 schrieb Boris Dorestand: I have 16 values of the period sequence 1, 2, 4, 8, 1, 2, 4, 8, ... I compute its fourier transform using from scipy import fft, ifft x = [1,2,4,8,1,2,4,8] fft(x) array([ 30. +0.j, 0. +0.j, -6.+12.j, 0. +0.j, -10. +0.j, 0. +0.j,

Re: how to plot the FFT of a list of values

2020-12-05 Thread Dan Stromberg
On Sat, Dec 5, 2020 at 9:20 AM Boris Dorestand wrote: > I have 16 values of the period sequence 1, 2, 4, 8, 1, 2, 4, 8, ... I > compute its fourier transform using > > >>> from scipy import fft, ifft > >>> x = [1,2,4,8,1,2,4,8] > >>> fft(x) > array([ 30. +0.j, 0. +0.j, -6.+12.j, 0. +0.j,

how to plot the FFT of a list of values

2020-12-05 Thread Boris Dorestand
I have 16 values of the period sequence 1, 2, 4, 8, 1, 2, 4, 8, ... I compute its fourier transform using >>> from scipy import fft, ifft >>> x = [1,2,4,8,1,2,4,8] >>> fft(x) array([ 30. +0.j, 0. +0.j, -6.+12.j, 0. +0.j, -10. +0.j, 0. +0.j, -6.-12.j, 0. +0.j]) Now how can I