I'm playing a bit with Discreet Fourier Transform, but I'm already stuck. Problem is that I've never learn how to deal with imaginary numbers...
Now, for the infos I've found the DFT for
s={x_1, x_2, ... x_N}
is
S={y_1, y_2, ... y_N}
with:
N
y_k = sum x_h*exp(-i*2*pi*(k-1)*(h-1)/N), 1<= k <= N
h=1
Now, porting the above expression to code is pretty simple. Only, I'm stuck on that damned -i !
I mean, if
x_1 = 10337497
and
N = 196608
going for y_2, at the first iteration is:
10337497 * exp(-i*2*pi*(2-1)*(1-1)/196608)
How can I solve it?
Now, for the infos I've found the DFT for
s={x_1, x_2, ... x_N}
is
S={y_1, y_2, ... y_N}
with:
N
y_k = sum x_h*exp(-i*2*pi*(k-1)*(h-1)/N), 1<= k <= N
h=1
Now, porting the above expression to code is pretty simple. Only, I'm stuck on that damned -i !
I mean, if
x_1 = 10337497
and
N = 196608
going for y_2, at the first iteration is:
10337497 * exp(-i*2*pi*(2-1)*(1-1)/196608)
How can I solve it?
Comment