This function is piecewise smooth but has jumps.
The Fourier series for this function converges pointwise,
but because of the jumps, it doesn't converge uniformly.
This is called the Gibbs phenomenon.

next page