Mathc initiation/Fichiers h : c53


Sommaire


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


c_kzr.c
/* --------------------------------- */
/* save as c_kzr.c                   */
/* --------------------------------- */
#include  "x_hfile.h"
#include    "f_kzr.h"
/* --------------------------------- */
int main(void)
{
double M =  cylindrical_dkdzdr( f,
                                u,v,LOOP,
                                s,t,LOOP,
                                a,b,LOOP);
 clrscrn();
 
 printf(" With the cylindrical coordinates. dkdzdr\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(" z = t : r     -> %s  \n", teq);
 printf(" z = s : r     -> %s\n\n", seq); 

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

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

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


Exemple de sortie écran :

 With the cylindrical coordinates. dkdzdr

     f : r,k,z -> z

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

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

 r = a :       -> 0  
 r = b :       -> 2

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

  Code mathematica  : 

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


 Press return to continue.