Mathc initiation/Fichiers h : c50a5


Sommaire


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


c00c.c
/* ---------------------------------- */
/* save as c00c.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include      "fc.h"
/* ---------------------------------- */
int main(void)
{
 clrscrn();

 printf(" f : (x,y)-> %s\n\n", feq);
 printf(" v :   (x)-> %s  \n", veq);
 printf(" u :   (x)-> %s\n\n", ueq);
 printf(" b =    %+.1f\n a =    %+.1f\n\n\n",bx,ax);

 printf(" Find the surface area for the given functions\n");
 printf(" with the simpson's rule.\n\n\n");
 printf("    (b     (v(x)\n");
 printf(" int(   int(     sqrt(f_x()**2 + f_y()**2 + 1)  dydx = %.3f\n",
                                             S_dydx(f, u,v,LOOP, ax,bx,LOOP));
 printf("    (a     (u(x)\n\n\n");

 printf("\n\n Press return to continue.\n");
 getchar();

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


Exemple de sortie écran :

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

 u :   (y)-> 0  
 v :   (y)-> sqrt(4-y**2)

 a = +0.0   b = +2.0 



 Find the surface area for the given functions
 with the simpson's rule.


    (b     (v(x)
 int(   int(     sqrt(f_x()**2 + f_y()**2 + 1)  dydx = 9.044
    (a     (u(x)




 Press return to continue.


Exemple de sortie écran :

Verify with maple

 restart:
 
 f := (x,y)->4-x^2-y^2:
 Int(
 Int(
 
 sqrt( diff(f(x,y),x)^2 + diff(f(x,y),y)^2 + 1),
 
 y = 0 .. sqrt(4-x^2)),
 x = 0 .. 2);

                             2
              2    sqrt(4 - x )
             /    /
            |    |                      2      2
            |    |              sqrt(4 x  + 4 y  + 1) dy dx
            |    |
           /    /
             0    0

 evalf(value(%));
 

                             9.044225799