c code to compute twiddle factor - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

c code to compute twiddle factor


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
Please help me with this
Sign In or Register to comment.