Well, yes, but it would be a waste of time for both of us:
1. Assign zero to j.
2. Divide n by 2 and assign the result to n2.
And so on. I don't think that's what you were looking for. Could you perhaps produce a more practical question?
Joined: Sep 13, 2011
I've read about fft and i found few steps how to do this. I don't know how to assign them to this code.
1.Prepare input data for summation — put them into convenient order;
2.For every summation level:
2.1For every exponent factor of the half-period:
2.1.1For every sum of this factor:
2.1.2Calculate product of the factor and the second term of the sum;
Piotr Orzech wrote:I am begginer in programming...
Do you understand the mathematics behind FFT and DIT? That is the hard part here. You need to get good grasp of this first and then to analyze code you didn't even write. Trying to understand the algorithm from a foreign code (possibly optimized using clever mathematical tricks, or - worse - even buggy) when you're a beginner in programming would certainly be a frustrating task.