c code to compute twiddle factor

Hello,

I am computing C code for fft for 50 samples. ex:[1 2 3 4....until 50]

Before computing fft i have to compute twiddle factor.twiddle factor formula contains the imaginary part.I have to write a for loop or any other loops to compute for 50 samples.
Is it possible to write a code by using any loop for a twiddle factor value of WN=(0.992-0.125i)?

for 50 samples N=50, k=0,1,2...N-1, n=49
formula for fft and twiddle factor is given in the below links.

http://www.alwayslearn.com/dft and fft tutorial/images/DFTEquation.jpg
http://www.freescale.com/infocenter/topic/AN4255/2381005.png
Please help me with this
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories