Maxima Function
totalfourier (f, x, p)
Returns fourexpand (foursimp (fourier (f, x, p)), x, p, 'inf).
fourexpand (foursimp (fourier (f, x, p)), x, p, 'inf)