WOLFRAM|DEMONSTRATIONS PROJECT

Approximation of Discontinuous Functions by Fourier Series

​
log
2
​(n)
0
frequency (Hz)
1
type
rectangular wave
triangular wave
sawtooth wave
This Demonstration shows how a Fourier series of sine terms can approximate discontinuous periodic functions well, even with only a few terms in the series. Use the sliders to set the number of terms to a power of 2 and to set the frequency of the wave.