Sommaire


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


c_rzk.c
/* --------------------------------- */
/* save as c_rzk.c                   */
/* --------------------------------- */
#include  "x_hfile.h"
#include    "f_rzk.h"
/* --------------------------------- */
int main(void)
{
double M =  cylindrical_drdzdk( f,
                                u,v,LOOP,
                                s,t,LOOP,
                                a,b,LOOP);
 clrscrn();
 
 printf(" With the cylindrical coordinates. drdzdk\n\n");
 printf("     f : r,k,z -> %s\n\n", feq);

 printf(" r = v : k,z   -> %s  \n", veq);
 printf(" r = u : k,z   -> %s\n\n", ueq);

 printf(" z = t : k     -> %s  \n", teq);
 printf(" z = s : k     -> %s\n\n", seq);

 printf(" k = b :       -> %s  \n", beq);
 printf(" k = a :       -> %s\n\n", aeq);
                          
 printf("        (k=b     (z=t(k)   (r=v(k,z)    \n");
 printf(" m = int(     int(      int(   f(r,k,z) *r* drdzdk = %.6f\n",M);
 printf("        (k=a     (z=s(k)   (r=u(k,z)\n\n");

 printf("  Code mathematica  : \n\n" 
        "  integral z * (r) dr dz dk from 0 to sqrt(4-z)"
        " from 0 to 2*Pi  from 1 to 2\n\n\n");
        
 stop();

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


Exemple de sortie écran :

 With the cylindrical coordinates. drdzdk

     f : r,k,z -> z

 r = u : k,z   -> 0  
 r = v : k,z   -> sqrt(4-z)

 z = s : k     -> 1  
 z = t : k     -> 2

 k = a :       -> 0  
 k = b :       -> 2*PI

        (k=b     (z=t(k)   (r=v(k,z)    
 m = int(     int(      int(   f(r,k,z) *r* drdzdk = 11.519173
        (k=a     (z=s(k)   (r=u(k,z)

  Code mathematica  : 

  integral z * (r) dr dz dk from 0 to sqrt(4-z) from 0 to 2*Pi  from 1 to 2


 Press return to continue.