Sommaire


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


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

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

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

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


Exemple de sortie écran :

 With the cylindrical coordinates. dkdrdz

     f : r,k,z -> z

 k = v : r,  z -> 2*PI  
 k = u : r,  z -> 0

 r = t :     z -> 2  
 r = s :     z -> 0

 z = b :       -> 1  
 z = a :       -> 0

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

  Code mathematica  : 

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


 Press return to continue.