- #1
ColdStart
- 19
- 0
letsa say my function is:
x(n) = 1 + sin((2*pi)/N)*n + 3*cos((2*pi)/N)*n + cos( ((4*pi)/N)*n + pi/2);
when i plot it inside a loop, with a loop variable being n, i have something llike increasing slope... even when i set a period N to be 8,4 or whateva..
on the other side... when i plot the same function expanded using euler's expansion:
x(n) = 1 + (1/(2*1i))*(exp(1i*2*pi*n/N) - exp(-1i*2*pi*n/N)) + 1.5*(exp(1i*2*pi*n/N) + exp(-1i*2*pi*n/N)) + 0.5*(exp(1i*(4*pi*n/N + pi/2)) + exp(-1i*(4*pi*n/N + pi/2)));
i do get a function which looks periodic.. that is a little bit weird, or am i missing something?
p.s. and the second function is obtained from the Fourier ak Coofficients..
x(n) = 1 + sin((2*pi)/N)*n + 3*cos((2*pi)/N)*n + cos( ((4*pi)/N)*n + pi/2);
when i plot it inside a loop, with a loop variable being n, i have something llike increasing slope... even when i set a period N to be 8,4 or whateva..
on the other side... when i plot the same function expanded using euler's expansion:
x(n) = 1 + (1/(2*1i))*(exp(1i*2*pi*n/N) - exp(-1i*2*pi*n/N)) + 1.5*(exp(1i*2*pi*n/N) + exp(-1i*2*pi*n/N)) + 0.5*(exp(1i*(4*pi*n/N + pi/2)) + exp(-1i*(4*pi*n/N + pi/2)));
i do get a function which looks periodic.. that is a little bit weird, or am i missing something?
p.s. and the second function is obtained from the Fourier ak Coofficients..