Analyse Fourier, le programme afourier

Il s'agit d'un programme  en Casio BASIC pour la CLassPad 330. Il peut tre dmarr de l'cran 
principal ou de l'cran "Programme".

Le programme afourier(FONCTION, DEGRE) calcule et trace l'approximation Fourier sur l'intervalle
[-pi, pi] d'une fonction donne jusqu' un degr donn.
FONCTION contient l'expression de la fonction  approximer. L'argument x est obligatoire. 
DEGRE doit tre contenu entre 1 et 20.

Exemple: afourier(x^2,7)

Aprs l'affiche des cofficients Fourier, le programme se trouve en mode PAUSE et doit tre continu 
avec le bouton au coin en bas  droite.
Le programme procde en tracant le graphe de la somme Fourier, aprs quoi il se trouve de nouveau
en PAUSE. L'cran peut maintenant tre modifi par l'utilisateur. Le programme est termin  par le 
bouton de continuation.

Si le programme est lanc de l'application principale, il returne la somme de fourier comme 
expression en u. On peut transformer cette expression en fonction par la commande
(exemple): define g(x)=expr1|u=x. 


Fourier analysis, the program afourier

This is a programm written in Casio Basic for the ClassPad 330. It can be started from the Main screen 
or from the Program screen.

The program afourier(FONCTION, DEGRE) computes and traces the Fourier approximation on the
interval [-pi, pi] of a given function up to a given degree.
FONCTION contains the expression of the function to approximate. The argument of this function
must be x. DEGRE must be greate or equal to 1 and less than or equal to 20.

Example: afourier(x^2,7)

After the fourier coefficients have been displayed, the program is in PAUSE status and must 
be continued by the bottom right button.
The program procedes to draw the graph of the Fourier sum, then pauses again. It is stopped by 
hitting the continuation button.

If the program is started from the Main application, it returns the Fourier sum as an expression
in u.  This expression can be turned into a function by (example): define g(x)=expr1|u=x.