Mathc initiation/Fichiers h : c52a5


Sommaire


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


c00b.c
/* --------------------------------- */
/* save as c00b.c                    */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fb.h"
/* --------------------------------- */
int main(void)
{
 clrscrn();
 
 printf(" h : (r,k)-> %s\n\n", heq);
 printf(" t :   (k)-> %s  \n", teq);
 printf(" s :   (k)-> %s\n\n", seq); 
 
 printf(" b =    %+.1f\n a =    %+.1f\n\n\n",bk,ak);

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

 stop();

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


Exemple de sortie écran :

 h : (r,k)-> 7 - 7./25 * r**2

 s :   (k)-> 0  
 t :   (k)-> 5

 a = +0.0   b = +6.3 



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


    (b     (t(k)
 int(   int(     sqrt(h_r()**2 + h_k()**2 + 1)  * r drdk = 168.855326
    (a     (s(k)


 Press return to continue.


Exemple de sortie écran :

Verify with maple

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

                2 Pi    5
               /       /
              |       |                  2
              |       |   1/25 sqrt(196 r  + 625) r dr dk
              |       |
             /       /
               0       0

> evalf(value(%));
> 

                             168.8553261

>