Mathc initiation/000i
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 = -5.0; w.xmax = +5.0;
w.ymin = -5.0; w.ymax = +5.0;
tvalue ft;
ft.min = -PI/2.;
ft.max = +PI/2.;
ft.step = .1;
tvalue gt;
gt.min = -5.;
gt.max = +5.;
gt.step = .1;
G_fgab_2d( w,
ft,f,feq,
gt,g,geq);
clrscrn();
printf(" Draw the functions y = %s(x), y = %s(x)\n\n"
" ... load \"a_main.plt\" ... with gnuplot.\n\n\n",
feq,geq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Dessiner une fonction et son inverse
Exemple de sortie écran :
Draw the functions y = tan(x), y = atan(x)
... load "a_main.plt" ... with gnuplot.
Press return to continue.