Mathc initiation/a601
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c0a0.c |
---|
/* ---------------------------------- */
/* save as c0a0.c */
/* ---------------------------------- */
#include "x_hfile.h"
/* ---------------------------------- */
#include "f0.h"
/* ---------------------------------- */
int main(void)
{
double T = PI;
double a = 0.;
double b = PI;
double a0 = 1./T * fourier_a0(f, a, b);
clrscrn();
printf(" _+oo_ \n"
" \\ \n"
" S(t) = a0 + | an cos(omega* n*t) + bn sin(omega *n*t)\n"
" /_____ \n"
" n = 1 \n\n\n\n");
printf(" (a + T\n"
" a0 = 1/T int( (%s) dx = %.6f\n"
" (a \n\n\n\n", feq, a0);
stop();
return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */
Exemple de sortie écran :
_+oo_
\
S(t) = a0 + | an cos(omega* n*t) + bn sin(omega *n*t)
/_____
n = 1
(a + T
a0 = 1/T int( (t) dx = 1.570796
(a
Press return to continue.