Aller au contenu

Mathc initiation/Fichiers c : c53c1b

Un livre de Wikilivres.


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_drdzrdxy( P,
                             ar, br, LOOP,
                             azr,bzr,LOOP,
                             axy,bxy,LOOP);
 clrscrn();
 
 printf(" With spherical coordinates.\n\n\n");
 printf(" P   : r,zr,xy -> %s                \n\n",   Peq);

 printf(" br  :   zr,xy -> %s                  \n",  breq);
 printf(" ar  :   zr,xy -> %s         [0..oo]\n\n",  areq);

 printf(" bzr :      xy -> %s                  \n", bzreq);
 printf(" azr :      xy -> %s         [0..PI]\n\n", azreq);

 printf(" bxy :         -> %s                  \n", bxyeq);
 printf(" axy :         -> %s        [0..2PI]\n\n", axyeq);

 printf("        (bxy     (bzr(xy)   (br(zr,xy)    \n");
 printf(" m = int(     int(       int(   f(r,zr,xy) r**2 sin(zr) dr dzr dxy = %.6f\n",m);
 printf("        (axy     (azr(xy)   (ar(zr,xy) \n\n");

 stop();

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */
My spherical coordinates for my work in language c

Exemple de sortie écran :

 With spherical coordinates.


 P   : r,zr,xy -> 1                

 ar  :   zr,xy -> 0           [0..oo]
 br  :   zr,xy -> 1                

 azr :      xy -> 0           [0..PI]
 bzr :      xy -> PI                

 axy :         -> 0          [0..2PI]
 bxy :         -> 2*Pi                

        (bxy    (bzr(xy)   (br(zr,xy)    
 m = int(    int(       int(   f(r,zr,xy) r**2 sin(zr) dr dzr dxy = 4.188790
        (axy    (azr(xy)   (ar(zr,xy) 

 Press return to continue.