1 | initial version |
In simple cases you can try:
sage: maxima('load(fourie)')
sage: maxima('totalfourier(abs(x),x,%pi)').sage()
1/2pi + 2sum(((-1)^n - 1)cos(nx)/n^2, n, 1, +Infinity)/pi
sage: maxima('totalfourier(x^3,x,%pi)').sage()
-2sum((pi^2n^2 - 6)(-1)^nsin(n*x)/n^3, n, 1, +Infinity)