maxima_fourier-transform-periodic-rectangular
Fourier transform
integrate(h(x)*exp(-%i*2*%pi*(y*x)),x,-inf,inf);
rectangular waveform
h(x):=sum(sin(%pi*(2*n+1)*x)/(2*n+1),n,0,10);
Example:
h(x):=sum(sin(%pi*(2*n+1)*x)/(2*n+1),n,0,10); integrate(h(x)*exp(-(x^2)*0.1)*exp(-%i*2*%pi*(y*x)),x,-inf,inf); cabs(%); plot2d(%, [y,-5,5]);