ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Dec 2011 08:52:24 -0600Recover general formula for fourier series?http://ask.sagemath.org/question/8600/recover-general-formula-for-fourier-series/Hi,
Is there a way to recover the general formula for a fourier series? That is, f.fourier_series_sine_coefficient(9,pi) will give me the 9th sine coefficient, but I'd like to know more generally how I can construct the Nth sine coefficient.
I'm doing some complicated (to me) fourier series, and I'm having trouble figuring out the formula for the Nth.
Thanks for any help.
Andrewgopher13Thu, 29 Dec 2011 08:52:24 -0600http://ask.sagemath.org/question/8600/creating a fourier series animationhttp://ask.sagemath.org/question/8062/creating-a-fourier-series-animation/Hello,
I want to create an animation of sum((-1)^(n-1)*sin(n*x)/n,n,1 , k)
and show that as the number of terms 'k' in the partial sums increase, the sum converges to x/2 i.e looks more and more like the graph of x/2.
My first try is
**a = animate([(sum((-1)^(n-1)*sin(n*x)/n,n,1 , k))] for k in range (1,50,1))**
But that returns me an error
*Traceback (click to the left of this block for traceback)
...
AttributeError: 'int' object has no attribute '_maxima_'*
Also I want to include a static graph of x/2 in the background of the animation so that it is easy to observe that the series converges to x/2. how to do this?ebsFri, 08 Apr 2011 22:04:43 -0500http://ask.sagemath.org/question/8062/