Mathc initiation/a428
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,
uz, vz, LOOP,
sy, ty, LOOP,
ax, bx, LOOP);
clrscrn();
printf(" f : x,y,z -> %s\n\n", feq);
printf(" v : x,y -> %s \n", veq);
printf(" u : x,y -> %s\n\n", ueq);
printf(" t : x -> %s \n", teq);
printf(" s : x -> %s\n\n", seq);
printf(" b : -> %s \n", bxeq);
printf(" a : -> %s\n\n", axeq);
printf(" With the simpson's rule.\n\n\n");
printf(" (%+.1f (%s (%s \n", bx, teq, veq);
printf(" A = int( int( int( %s dz dy dx = %.6f\n",feq, M);
printf(" (%+.1f (%s (%s\n\n\n", ax, seq, ueq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : x,y,z -> 1
v : x,y -> (+cos(x)*sin(y) + 4)
u : x,y -> (-cos(x)*sin(y) - 4)
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 = 288.000000
(-3.0 (-3 ((-cos(x)*sin(y) - 4)
Press return to continue.