function x=TwoLoop(a,t);
%OneLoop.m--A double loop with inner loop implemented with *
%

n=length(a);
N=2*n-2;
p=length(t);dt=t(2)-t(1);
x=zeros(p,1);
f=2*pi/(N*dt);
k=[0:n-1];
for j=1:p
	x(j)=f*t(j)*k*a;
end
