Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00a.c
/* ------------------------------------ */
/*  Save as :   c00a.c                  */
/* ------------------------------------ */
#include "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
Circlevalue c1;
Circlevalue c2;

CTRL_splot w;

  w.xmin = -2;
  w.xmax =  2;            
  w.ymin = -1;
  w.ymax =  1;

 clrscrn();

 printf(" Draw a circle.\n\n");

  strcpy(c1.name, "a_c01");
  
  c1.radius =  1.;
  c1.cx     =   0;
  c1.cy     =   0;
  c1.step   =  .1;
  
  circle(c1); 

  strcpy(c2.name, "a_c02");
  
  c2.radius =  1./4.;
  c2.cx     =  3./4.;
  c2.cy     =   0;
  c2.step   =  .1;
  
  circle(c2); 
                  
  G_C_2d(w);


 printf(" ... load \"a_main.plt\" ... with gnuplot.  \n\n");

 stop();

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */


Exemple de sortie écran :

 Draw a circle.

 Open the file "a_main.plt" with Gnuplot.

 Press return to continue.