Mathc initiation/0047
Apparence

Installer et compiler ces fichiers dans votre répertoire de travail.
c0b2.c |
|---|
/* --------------------------------- */
/* save as c0b2.c */
/* --------------------------------- */
#include "x_afile.h"
#include "fb.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
w.xmin = -0., w.xmax = 3.;
w.ymin = -0., w.ymax = 3.;
w.zmin = -0., w.zmax = 5.;
w.rot_x = 55., w.rot_z = 57.;
w.scale = 1., w.scale_z = 1.;
clrscrn();
printf(" f : x,y,z -> %s\n\n", feq);
printf(" z1 : x,y -> %s \n", z1eq);
printf(" z0 : x,y -> %s\n\n", z0eq);
printf(" y1 : x -> %s \n", y1eq);
printf(" y0 : x -> %s\n\n", y0eq);
printf(" x1 : -> %s \n", x1eq);
printf(" x0 : -> %s\n\n", x0eq);
printf(" Draw the volume :\n\n");
G_vf( w,
z1eq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : x,y,z -> 1
z1 : x,y -> (+cos(x)*sin(y) + 4)
z0 : x,y -> 0
y1 : x -> +3
y0 : x -> -0
x1 : -> +3
x0 : -> -0
Draw the volume :
... load "a_main.plt" ... with gnuplot.
Press return to continue.