[SciPy-user] Using fftpack.diff

Neilen Marais nmarais at sun.ac.za
Tue Dec 5 03:36:13 CST 2006


Hi

I'm trying to get the DFT of the derivative of a real valued periodic
signal. If I have the time domain
signal in ts (where one period is stored in ts), I do:

fs = scipy.fftpack.fft(ts)
dfs = scipy.fftpack.diff(fs)
dts = scipy.fftpack.ifft(dfs)

However dts seems to be almost purely imaginary whereas ts is purely real.
I haven't done DFT related stuff for a while, am I misunderstanding
completely?

-- 
you know its kind of tragic 
we live in the new world
but we've lost the magic
-- Battery 9 (www.battery9.co.za)



More information about the SciPy-user mailing list