Mathc initiation/Fichiers h : c52a6


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(" h : (r,k)-> %s\n\n", heq);
 printf(" t :   (r)-> %s  \n", teq);
 printf(" s :   (r)-> %s\n\n", seq);
 
 printf(" b =    %+.1f\n a =    %+.1f\n\n\n",br,ar);

 printf(" Find the surface area for the given functions\n");
 printf(" with the simpson's rule. (polar form)\n\n\n");
 printf("    (b     (t(r)\n");
 printf(" int(   int(     sqrt(h_r()**2 + h_k()**2 + 1)  * r dkdr = %.6f\n", 
                                             S_dkdr(h, s,t,LOOP, ar,br,LOOP));
 printf("    (a     (s(r)\n\n\n");

 stop();

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


Exemple de sortie écran :

 h : (r,k)-> 4 - r**2

 s :   (r)-> 0  
 t :   (r)-> Pi/2

 a = +0.0   b = +2.0 



 Find the surface area for the given functions
 with the simpson's rule. (polar form)


    (b     (t(r)
 int(   int(     sqrt(h_r()**2 + h_k()**2 + 1)  * r dkdr = 9.044226
    (a     (s(r)


 Press return to continue.


Exemple de sortie écran :

Verify with maple

> restart:
> 
> f := (r,k)->4-r^2:
> Int(
> Int(
> 
> sqrt( (diff(f(r,k),r)^2 + diff(f(r,k),k)^2 + 1) ) * r,
> 
> k = 0 .. Pi/2),
> r = 0 .. 2);

                   2    1/2 Pi
                  /    /
                 |    |                2
                 |    |        sqrt(4 r  + 1) r dk dr
                 |    |
                /    /
                  0    0

> evalf(value(%));
> 

                             9.044225803

>