Mathc initiation/a318
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c_zkr.c |
---|
/* --------------------------------- */
/* save as c_zkr.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "f_zkr.h"
/* --------------------------------- */
int main(void)
{
double M = cylindrical_dzdkdr( f,
u,v,LOOP,
s,t,LOOP,
a,b,LOOP);
clrscrn();
printf(" With the cylindrical coordinates. dzdkdr\n\n");
printf(" f : r,k,z -> %s\n\n", feq);
printf(" z = v : r,k -> %s \n", veq);
printf(" z = u : r,k -> %s\n\n", ueq);
printf(" k = t : r -> %s \n", teq);
printf(" k = s : r -> %s\n\n", seq);
printf(" r = b : -> %s \n", beq);
printf(" r = a : -> %s\n\n", aeq);
printf(" (r=b (k=t(r) (z=v(r,k) \n");
printf(" m = int( int( int( f(r,k,z) *r* dzdkdr = %.6f\n",M);
printf(" (r=a (k=s(r) (z=u(r,k) \n\n");
printf(" Code mathematica : \n\n"
" integral z * (r) dz dk dr from 0 to 2"
" from 0 to Pi/2. from 0 to 3 \n\n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
With the cylindrical coordinates. dzdkdr
f : r,k,z -> z
z = u : r,k -> 0
z = v : r,k -> 2.
k = s : r -> 0
k = t : r -> PI/2.
r = a : -> 0
r = b : -> 3.
(r=b (k=t(r) (z=v(r,k)
m = int( int( int( f(r,k,z) *r* dzdkdr = 14.137167
(r=a (k=s(r) (z=u(r,k)
Code mathematica :
integral z * (r) dz dk dr from 0 to 2 from 0 to Pi/2. from 0 to 3
Press return to continue.