Mathc initiation/a47
Installer et compiler ces fichiers dans votre répertoire de travail.
![]() |
c00a.c |
---|
/* --------------------------------- */
/* save as c00a.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot p;
p.xmin = -3; p.xmax = 3;
p.ymin = -2; p.ymax = 2;
p.zmin = -0; p.zmax = 1;
p.rot_x = 55; p.rot_z = 57;
p.scale = 1; p.scale_z = 1;
clrscrn();
printf(" f : (x,y)-> %s\n\n\n", feq);
G_3d_eq( p,
feq);
printf(" Open the file \"a_main.plt\" with gnuplot.\n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Fichier de commande gnuplot :
reset
set samples 40
set isosamples 40
set hidden3d
set xlabel "X axis"
set ylabel "Y axis"
set zlabel "Z axis" offset 1, 0
set view 55.000, 57.000, 1.000, 1.000
set xrange [-3.000:3.000]
set yrange [-2.000:2.000]
set zrange [0.000:1.000]
splot 1/(x*x + y*y + 1)
Exemple de sortie écran 1 :
f : (x,y)-> 1/(x*x + y*y + 1)
Open the file "a_main.plt" with gnuplot.
Press return to continue.