Digital synthesis of square and sawtooth waveforms
Synthesising a square wave, or sawtooth wave, will give very different results, depending on how the wave is put together. A partial Fourier series sum, via the frequency domain, is a much better way that naively making a “square” waveform in the time domain.