Mathc initiation/a48
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* --------------------------------- */
/* save as c00b.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fb.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
w.xmin = -4; w.xmax = 4;
w.ymin = -4; w.ymax = 4;
w.zmin = -1; w.zmax = 1;
w.rot_x = 25; w.rot_z = 43;
w.scale = .7; w.scale_z = .7;
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, 0.700, 0.700
set xrange [-4.000:4.000]
set yrange [-4.000:4.000]
set zrange [-1.000:1.000]
splot cos(x*y)
Exemple de sortie écran 1 :
f : (x,y)-> cos(x*y)
Open the file "a_main.plt" with gnuplot.
Press return to continue.