Example Fourier Transforms

We know the answer: (sinc^2)

do_fourier(@tri);

We know the answer here also: tri

test = @(x) sinc(x).^2;
do_fourier(test);

self-transforming function

do_fourier(@gaus);

even function (pair of delta functions along real axis)

do_fourier(@(x) cos(2*pi*x));

odd function (delta functions along imaginary axis

do_fourier(@(x) sin(2*pi*x));