Fourier Series Approximation of Square Wave