Mathc initiation/0041
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00d3.c |
|---|
/* --------------------------------- */
/* save as c00d3.c */
/* --------------------------------- */
#include "x_afile.h"
#include "fd0.h"
#include "fd3.h"
/* --------------------------------- */
int main(void)
{ //dbdrda
double m = simpson_dydzdx( g,
b0, b1, LOOP,
r0, r1, LOOP,
a0, a1, LOOP);
double M = simpson_dxdy( G,
B0, B1, LOOP,
R0, R1, LOOP);
clrscrn();
printf(" With spherical coordinates.\n\n");
printf(" f : x,y,z -> %s \n", feq);
printf(" g : a,b,r -> %s \n\n", geq);
printf(" b1 : a,r -> %s \n", b1eq);
printf(" b0 : a,r -> %s [0..PI]\n\n", b0eq);
printf(" r1 : a -> %s \n", r1eq);
printf(" r0 : a -> %s [0..oo]\n\n", r0eq);
printf(" a1 : -> %s \n", a1eq);
printf(" a0 : -> %s [0..2PI]\n\n", a0eq);
printf(" (%s(%s (%s (dydzdx)\n", a1eq,r1eq,b1eq);
printf(" m = int( int( int( g(a,b,r) dbdrda = %.6f\n",m);
printf(" (%s (%s (%s\n\n", a0eq,r0eq,b0eq);
printf(" (%s (%s (dxdy)\n", R1eq,B1eq);
printf(" M = 2*PI int( int( G(b,r) dbdr = %.6f\n",2*PI*M);
printf(" (%s (%s\n\n", R0eq,B0eq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */

Exemple de sortie écran :
With spherical coordinates.
f : x,y,z -> (z cos(y))
g : a,b,r -> (r cos(b)) [r**2 sin(b)]
b1 : a,r -> PI/2
b0 : a,r -> 0 [0..PI]
r1 : a -> 1
r0 : a -> 0 [0..oo]
a1 : -> 2*Pi
a0 : -> 0 [0..2PI]
(2*Pi(1 (PI/2 (dydzdx)
m = int( int( int( g(a,b,r) dbdrda = 0.785398
(0 (0 (0
(1 (PI/2 (dxdy)
M = 2*PI int( int( G(b,r) dbdr = 0.785398
(0 (0
Press return to continue.