C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
c code to compute twiddle factor Posted by manjukamasani on 26 Dec 2012 at 1:20 AM
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%20and%20fft%20tutorial/images/DFTEquation.jpg
http://www.freescale.com/infocenter/topic/AN4255/2381005.png
Please help me with this



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.