Mathc initiation/Fichiers h : c54fd


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)
{
CTRL_splot w;

  w.xmin = -10;
  w.xmax =  10;            
  w.ymin = -10;
  w.ymax =  10;

Circlevalue c;

  c.radius =   5;
  c.cx     =   0;            
  c.cy     =   0;
  c.step   =  .1;
  
 clrscrn();

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

   circle(c); 
   G_C_2d_c(w);

 printf(" Open the file \"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.