Fourier Series
Function: calc[FourierAnim] - Fourier series animation
Calling Sequence:
FourierAnim(f, p, N, r, F)
Parameters:
f - periodic function with period
N - number of Fourier coefficients
r - range of the independent variable, for instance
or
F - name of the Fourier series
Description:
Type F to get the output of the partial sums.
Note! Use
as parameter if
is defined in the interval from -
to
.
Use p if
is defined in the interval from 0 to
.
Examples:
| > | restart: with(calc): |
| > | f:= t -> piecewise(t<-Pi, 0,t<0, -1,t<Pi,1,0): |
| > | 'f(t)'=simplify(f(t)); |
![]() |
| > | FourierAnim(f,Pi,20,t=-6..6,F1); |
![]() |
| > | F(t)=F1+`...`; |