Mathc initiation/0020
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c.c |
|---|
/* --------------------------------- */
/* save as c00c.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fc.h"
/* --------------------------------- */
int main(void)
{
double M = simpson_dydx(f, ay,by,LOOP, ax,bx,LOOP);
clrscrn();
printf("An odd function with respect to y\n\n");
printf(" f : (x,y)-> %s \n\n", feq);
printf(" by : (x)-> %s \n", byeq);
printf(" ay : (x)-> %s \n\n", ayeq);
printf(" bx : %s \n", bxeq);
printf(" ax : %s\n\n\n", axeq);
printf(" With the simpson's rule.\n\n");
printf(" (%+.3f (%s\n", bx,byeq);
printf(" int( int( %s dy dx = %.6f\n", feq, M);
printf(" (%+.3f (%s\n\n\n", ax,ayeq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Remarque : Il y a un nombre impaire de fonctions impaires. [y y sin(y)]
Verifier avec mathematica : Free: wolframalpha.com
integral ( y y sin(y) x**2) dy dx from (2) to (5) from (-1) to (1)
Exemple de sortie écran :
An odd function with respect to y
f : (x,y)-> y y sin(y) x**2
by : (x)-> +1
ay : (x)-> -1
bx : +5
ax : +2
With the simpson's rule.
(+5.000 (+1
int( int( y y sin(y) x**2 dy dx = -0.000000
(+2.000 (-1
Press return to continue.