Mathc initiation/a487
Installer et compiler ces fichiers dans votre répertoire de travail.
c00g2.c |
---|
/* --------------------------------- */
/* save as c00g2.c */
/* --------------------------------- */
#include "x_afile.h"
#include "f_g2.h"
/* --------------------------------- */
int main(void)
{
double M = J_uwv( 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(" r = v : r,z -> %s \n", veq);
printf(" r = u : r,z -> %s\n\n", ueq);
printf(" z = t : k -> %s \n", teq);
printf(" z = s : k > %s\n\n", seq);
printf(" k = b : -> %s \n", beq);
printf(" k = a : -> %s\n\n", aeq);
printf(" (k=b (z=t(k) (r=v(r,z) \n");
printf(" m = int( int( int( f(X,Y,Z) * J(X,Y,Z) drdzdk = %.6f\n",M);
printf(" (k=a (z=s(k) (r=u(r,z) \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : x,y,z -> 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.
r = v : r,z -> sqrt(4-z)
r = u : r,z -> 0
z = t : k -> 2
z = s : k > 1
k = b : -> 2*PI
k = a : -> 0
(k=b (z=t(k) (r=v(r,z)
m = int( int( int( f(X,Y,Z) * J(X,Y,Z) drdzdk = 11.519173
(k=a (z=s(k) (r=u(r,z)
Press return to continue.