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