The module piecewise.py has fairly extensive functionality for the
computation of Fourier series of piecewise defined periodic functions.
It even allows filters. There are examples at
http://www.sagemath.org/doc/html/const/node12.html
http://www.sagemath.org/hg/sage-main/file/cc1e12a492fc/sage/functions/piecewise.py
I think it is well documented but if tere are any questions, please just ask.

On Mon, Apr 14, 2008 at 7:47 PM, William Stein <[EMAIL PROTECTED]> wrote:
>
>  ---------- Forwarded message ----------
>  From: James Morrow <[EMAIL PROTECTED]>
>  Date: Mon, Apr 14, 2008 at 4:20 PM
>  Subject: fourier series
>  To: [EMAIL PROTECTED], William Stein <[EMAIL PROTECTED]>
>
>
>  Hello,
>
>  How do I use sage to compute a Fourier series?  The general question
>  is:  How to compute the nth term?  I guess I have to use maxima.  How
>  do I call maxima and then give it the imput?  I don't just want (say)
>  the 5th term, but the nth term.  Do I make n a variable (integer
>  variable)?  Maybe I can't do it in this generality, but for instance
>  this amounts to computing (int_{pi}^{pi} f(t)sin (n*t)dt)\pi, where I
>  declare n is an integer variable.
>
>  Jim
>
>
>  --
>  William Stein
>  Associate Professor of Mathematics
>  University of Washington
>  http://wstein.org
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to