Mathc initiation/a410
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c0a1.c |
---|
/* --------------------------------- */
/* save as c0a1.c */
/* --------------------------------- */
#include "x_afile.h"
#include "fa.h"
/* --------------------------------- */
int main(void)
{
double M = simpson_dydx(f, ay,by,LOOP, ax,bx,LOOP);
clrscrn();
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(" (%s (%s\n", bxeq,byeq);
printf(" int( int( %s dy dx = %.6f\n", feq, M);
printf(" (%s (%s\n\n\n", axeq,ayeq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : (x,y)-> cos(x)*sin(y) + 4
by : (x)-> +3
ay : (x)-> -3
bx : +3
ax : -3
With the simpson's rule.
(+3 (+3
int( int( cos(x)*sin(y) + 4 dy dx = 144.000000
(-3 (-3
Press return to continue.