My question is the following: how can I plot a function repeatedly? By following some topics here I found some basic information about using Fourier series. This is what I made:
f = Piecewise[{{x + π, -π < x < 0}, {x - π, 0 < x < π}}]; g = FourierSeries[f, x, 2]; Plot[{g, f}, {x, -10, 10}] This plots the Fourier series over all periods, but only plots my original function for one period. I need to repeat it periodically as follows: $f(x)(k\,E\,Z)=f(x+2\,k\,\pi)$
What do I have to do to get that?

Mod[]for the purpose; see e.g. this and this. $\endgroup$