Mathc initiation/a484
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00f1.c |
|---|
/* --------------------------------- */
/* save as c00f1.c */
/* --------------------------------- */
#include "x_afile.h"
#include "ff1.h"
/* --------------------------------- */
int main(void)
{
double M = cylindrical_drdkdz( f,
r0,r1,LOOP,
k0,k1,LOOP,
z0,z1,LOOP);
clrscrn();
printf(" With the cylindrical coordinates. drdkdz\n\n");
printf(" f : r,k,z -> %s\n\n", feq);
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 \n", z1eq,k1eq,r1eq);
printf(" A = int( int( int( f(r,k,z) (r) drdkdz = %.6f\n", M);
printf(" (%s (%s (%s\n\n", z0eq,k0eq,r0eq);
printf(" Code mathematica : \n\n"
" integral z * (r) dr dk dz from 0 to 2"
" from 0 to 2*Pi from 0 to sqrt(4-z)\n\n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
With the cylindrical coordinates. drdkdz
f : r,k,z -> z
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)
A = int( int( int( f(r,k,z) (r) drdkdz = 16.755161
(0 (0 (0
Code mathematica :
integral z * (r) dr dk dz from 0 to 2 from 0 to 2*Pi from 0 to sqrt(4-z)
Press return to continue.