Mathc initiation/a472
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b2.c |
---|
/* --------------------------------- */
/* save as c00b2.c */
/* --------------------------------- */
#include "x_afile.h"
#include "f_b2.h"
/* --------------------------------- */
int main(void)
{
double M = J_wuv( 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(" r = t : k -> %s \n", teq);
printf(" r = s : k > %s\n\n", seq);
printf(" k = b : -> %s \n", beq);
printf(" k = 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) dzdrdk = %.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
r = t : k -> 1
r = s : k > 0
k = b : -> +PI/2
k = a : -> 0
(k=b (r=t(k) (z=v(r,k)
m = int( int( int( f(X,Y,Z) * J(X,Y,Z) dzdrdk = 0.041667
(k=a (r=s(k) (z=u(r,k)
Press return to continue.