Sommaire


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


c00a.c
/* --------------------------------- */
/* save as c00a.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fa.h"
/* --------------------------------- */
int main(void)
{
double M = simpson_dydx(f, u,v,LOOP, a,b,LOOP);
 
 clrscrn();
 
 printf(" If the variables are separable,\n"
        " you can use the product of two simple integrals,\n"
        " instead of a double integral.\n\n See c00a2.c\n\n\n");
 
 printf(" f  : (x,y)-> %s  \n\n",  feq);
 
 printf(" v :   (x)-> %s    \n", veq); 
 printf(" u :   (x)-> %s  \n\n", ueq);
 
 printf(" b :         %s    \n", beq);
 printf(" a :         %s\n\n\n", aeq);

 printf("    (%s      (%s\n",      beq,veq);
 printf(" int(    int(       %s  dy dx = %.6f\n", feq, M);
 printf("    (%s      (%s\n\n\n",  aeq,ueq);

 stop();
 
 return 0;
}
/* --------------------------------- */
/* --------------------------------- */


Exemple de sortie écran :

 If the variables are separable,
 you can use the product of two simple integrals,
 instead of a double integral.

 See c00a2.c


 f  : (x,y)-> x**2 * cos(y)  

 v :   (x)-> 2    
 u :   (x)-> 0  

 b :         3    
 a :         0


    (3      (2
 int(    int(       x**2 * cos(y)  dy dx = 8.183677
    (0      (0


 Press return to continue.