I have:
f[x_] := Piecewise[{{x, 0 <= x < 1}, {2 - x, 1 <= x < 3}, {x - 4,
3 <= x < 4}}]
Plot[f[x], {x, 0, 4}]
Which produces this plot:
I'm looking for a simple way to convert this into a periodic function so that this image repeats itself every 4 units, in either the positive or negative direction along the x-axis.
Anybody have an idea?