In: Advanced Math
Compute the Fourier series for the triangle and sawtoothwaves,
i.e. the following functions, periodically extended to R:
f(x) = |x|, −1 < x ≤ 1; g(x) = x−π ,−π ≤ x < π . Plot each
function and its Fourier polynomials of degrees up to 4.