Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00f.c
/* ---------------------------------- */
/* save as c17f.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "ff.h"
/* --------------------------------- */
int main(void)
{
double ax = 0, 
       bx = 1, 
       nx = 2*50, ny = 2*50, nz = 2*50;

double  M = trapezoid_dzdydx(f,
                             uz, vz, nz,
                             sy, ty, ny,
                             ax, bx, nx);
 
 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(" With the trapezoidal'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);

printf(" Code Mathematica : \n\n"
        " integral x*y dz dy dx from (x*y) to"
        " (x**2*y**3) from +0 to 1 from (x) to (x**2)\n\n\n");
 stop();

 return 0;
}
/* --------------------------------- */


Exemple de sortie écran :

 f : x,y,z -> x*y

 v : x,y   -> x**2*y**3  
 u : x,y   -> x*y

 t : x     -> x**2  
 s : x     -> x

 With the trapezoidal's rule.


        (+1.0  (x**2     (x**2*y**3    
 A = int(   int(    int(      x*y  dz dy dx = 0.010582
        (+0.0  (x     (x*y


 Press return to continue.