Mathc initiation/a172
Apparence
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 = -5;
w.xmax = 5;
w.ymin = -5;
w.ymax = 5;
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.;
c2.cx = 2.;
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.