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 "ff2.h"
/* --------------------------------- */
int main(void)
{
double M = J_uvw( f,
X,Y,Z,
r0,r1,LOOP,
k0,k1,LOOP,
z0,z1,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(" r1 k,z -> %s \n", r1eq);
printf(" r0 k,z -> %s\n\n", r0eq);
printf(" k1 z -> %s \n", k1eq);
printf(" k0 z -> %s\n\n", k0eq);
printf(" z1 -> %s \n", z1eq);
printf(" z0 -> %s\n\n", z0eq);
printf(" (%s (%s (%s (drdkdz)\n", z1eq,k1eq,r1eq);
printf(" A = int( int( int( f(X,Y,Z) |J| dudvdw = %.6f\n", M);
printf(" (%s (%s (%s\n\n", z0eq,k0eq,r0eq);
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.
r1 k,z -> sqrt(4-z)
r0 k,z -> 0
k1 z -> 2*PI
k0 z -> 0
z1 -> 2
z0 -> 0
(2 (2*PI (sqrt(4-z) (drdkdz)
A = int( int( int( f(X,Y,Z) |J| dudvdw = 16.755161
(0 (0 (0
Press return to continue.