Mathc initiation/a49
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c.c |
---|
/* --------------------------------- */
/* save as c00c.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fc.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
w.xmin = -8; w.xmax = 8;
w.ymin = -8; w.ymax = 8;
w.zmin = -2; w.zmax = 2;
w.rot_x = 25; w.rot_z = 43;
w.scale = 1; w.scale_z = 1;
clrscrn();
printf(" f : (x,y)-> %s\n\n\n", feq);
G_3d_eq( w,
feq);
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 25.000, 43.000, 1.000, 1.000
set xrange [-8.000:8.000]
set yrange [-8.000:8.000]
set zrange [-2.000:2.000]
splot cos(x)+cos(y)
Exemple de sortie écran 1 :
f : (x,y)-> cos(x)+cos(y)
Open the file "a_main.plt" with gnuplot.
Press return to continue.