Mathc initiation/a195
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* --------------------------------- */
/* save as c00a.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.min = 0.;
t.max = 2.*PI;
t.step = 0.1;
CTRL_splot p;
p.xmin = -2;
p.xmax = 2;
p.ymin = -2;
p.ymax = 2;
clrscrn();
printf(" Limacon of Pascal\n\n"
" r : t-> %s\n\n", req);
G_polar_lp(p,
r,
t);
printf(" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
Limacon of Pascal
r : t-> a+b*cos(t)
To see the graph, open the file "a_main.plt" with Gnuplot.
Press return to continue.