Mathc initiation/a474
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c2.c |
---|
/* --------------------------------- */
/* save as c00c2.c */
/* --------------------------------- */
#include "x_afile.h"
#include "f_c2.h"
/* --------------------------------- */
int main(void)
{
double M = J_wvu( f,
X,Y,Z,
u,v,LOOP,
s,t,LOOP,
a,b,LOOP);
clrscrn();
printf(" f : x,y,z -> %s\n\n", feq);
printf(" The change of variables.\n");
printf(" X : r,k,z -> %s \t\t\t \n",Xeq);
printf(" Y : r,k,z -> %s \t\t\t \n",Yeq);
printf(" Z : r,k,z -> %s \t\t\t \n\n",Zeq);
printf(" The cylindrical coordinates.\n");
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(" (k=b (r=t(k) (z=v(r,k) \n");
printf(" m = int( int( int( f(X,Y,Z) * J(X,Y,Z) dzdkdr = %.6f\n",M);
printf(" (k=a (r=s(k) (z=u(r,k) \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : x,y,z -> (x*y*z)
The change of variables.
X : r,k,z -> (r*cos(k))
Y : r,k,z -> (r*sin(k))
Z : r,k,z -> (z)
The cylindrical coordinates.
z = v : r,k -> r
z = u : r,k -> 0
k = t : r -> +PI/2
k = s : r > 0
r = b : -> 1
r = a : -> 0
(k=b (r=t(k) (z=v(r,k)
m = int( int( int( f(X,Y,Z) * J(X,Y,Z) dzdkdr = 0.041667
(k=a (r=s(k) (z=u(r,k)
Press return to continue.