Mathc initiation/a421
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_dzdydx(f,
z0, z1, LOOP,
y0, y1, LOOP,
x0, x1, LOOP);
clrscrn();
printf(" f : x,y,z -> %s\n\n", feq);
printf(" z1 : x,y -> %s \n", z1eq);
printf(" z0 : x,y -> %s\n\n", z0eq);
printf(" y1 : x -> %s \n", y1eq);
printf(" y0 : x -> %s\n\n", y0eq);
printf(" x1 : -> %s \n", x1eq);
printf(" x0 : -> %s\n\n", x0eq);
printf(" With the simpson's rule.\n\n\n");
printf(" (%+.1f (%s (%s \n", x1, y1eq, z1eq);
printf(" A = int( int( int( %s dz dy dx = %.6f\n",feq, M);
printf(" (%+.1f (%s (%s\n\n\n", x0, y0eq, z0eq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : x,y,z -> 1
v : x,y -> (+cos(x)*sin(y) + 4)
u : x,y -> 0
t : x -> +3
s : x -> -3
b : -> +3
a : -> -3
With the simpson's rule.
(+3.0 (+3 ((+cos(x)*sin(y) + 4)
A = int( int( int( 1 dz dy dx = 144.000000
(-3.0 (-3 (0
Press return to continue.