cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How IFFT works?

ptc-1681201
3-Visitor

How IFFT works?

Hi,

I'm trying to understand how the IFFT works.

The most difficult thing to be understood by me is the reason why, having 2049 complex samples (p0) I get as a result (4096) real numbers.

The complex samples are not generated by me, are the result of an algorithm written by others.

So I try to understand if there is something special in those samples.

I tried to compare the result with what I get with Wolfram Mathematica (sorry about that):

InverseFourier[p0, FourierParameters -> {1, -1}];

and I get (2049) complex numbers. To get something similar in shape I need to take the real part of those numbers.

Beside that the result of the IFFT is 2048 (magic number!) larger than the result of the InverseFourier.

Can anyone explain to me the reason of those "mysteries"?

Thanks

 

5 REPLIES 5

Are you using Prime or real (legacy) Mathcad (version 15,14, ...)?

 

In Primes help you won't find much information about "IFFT" because PTC has replaced it by "idft" and considers "IFFT" as deprecated.

Discrete Fourier Transform of Data

 

Maybe the original help (from MC15) can be of information to you - at least it explains The "magic number" ( a power of 2)

Werner_E_0-1681659641885.png

 

Yes, I'm using Mathcad 15. I was aware of that help, thank you.

My main concern is: how special is that complex function that its Inverse Fourier is real? Better: is IFFT really an Inverse Fourier?

Thanks again.

I remember questions about ifft and IFFT here in the forum in the past and a comparison with the results of other programs like MatLab.

I think that Tom Gutman answered in a quite old thread in more detail about it. You should be able to find those threads using the search function.

 

EDIT: Just tried and wasn't able to find that thread I had in my mind. So something is not working - either the search function here or my memory 😉

ttokoro
20-Turquoise
(To:ptc-1681201)

image.pngimage.png

ttokoro_0-1681791992495.png..... Signal is real 1024=2^10 data.

ttokoro_1-1681792117900.png.... Its FFT is 0+512 complex data. 0: DC, 1: fundamental magnitude. Real: cos. -Imag: sin. IFFT make real signal data from the spectorums. 

 

 

image.pngimage.pngimage.png

-MFra-
21-Topaz II
(To:ptc-1681201)

You may be interested in this work of mine which you find attached in pdf format, created by me with MATHCAD 15. Up to page: 71 very useful programs are shown, then the functions that generate the impulses and from page 72 the periodic functions with the spectra and its reconstruction with Shannon.

Top Tags