Question: Fourier transform of a square wave

I must be missing something in my Fourier integral.  My understanding is that the sinc function is the transform of a square wave.  In the link below I am getting something slightly different.  I have the parameter tau to define relative to the period, T, to vary the width aspect ratio of the wave,  If tau=T I do get the sinc function.

What am I missing or is what I have correct?

Sq_wave_Fourier_transform.mw

Please Wait...