The Fourier transformed only ever has equal values on each discrete position. In the above example 8 times "3" is printed.
Perhaps I'm missing a division by N, I'm not sure whether this is for the transformation or it's inverse.
Futher I can't suspect any fault in the algorithm, it seems to be equivalent to the definition, unless I'm being stupid.
Note this is FT, not FFT.
Why do I not get sinusoids or sinc's for the transformed output? I want them...
Thanks.
[size="2"]SignatureShuffle: [size="2"]Random signature images on fora
Your code is incorrect. First, at the very least you must treat F as complex values. Second, you calculate the real and imaginary part of the phasor correct, but you should multiply the input signal by the complex value r_part +i*i_part, not by sqrt(r_part[sup]2[/sup] + i_part[sup]2[/sup]). See the definition of the discrete Fourier transform.
If you think about your current code, you will see that sqrt(cos[sup]2[/sup](a)+ cos[sup]2[/sup](a)), which is always equal to 1 no matter what the value of a is.