Mathc initiation/Fichiers h : c52
Installer et compiler ces fichiers dans votre répertoire de travail.
c_krz.c |
---|
/* --------------------------------- */
/* save as c_krz.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "f_krz.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 = u : r, z -> 0
k = v : r, z -> 2*PI
r = s : z -> 0
r = t : z -> 2
z = a : -> 0
z = b : -> 1
(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.