Sommaire


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 = -2.0; w.xmax = +4.;
            w.ymin = -1.5; w.ymax = +3.5;
             
tvalue ft;
       ft.min   =   +0.; 
       ft.max   =   +PI;  
       ft.step  =    .1;
       
tvalue gt;
       gt.min   =    -1.; 
       gt.max   =    +1.;  
       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 = cos(x),   y = acos(x)

 ... load "a_main.plt" ... with gnuplot.


 Press return to continue.