Mathc initiation/a190
Installer et compiler ces fichiers dans votre répertoire de travail.
c00e1.c |
---|
/* --------------------------------- */
/* save as c00e1.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fe.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.value = 0.;
t.min = 0.;
t.max = 2.*PI;
t.step = .05;
CTRL_splot p;
p.xmin = -3;
p.xmax = 3;
p.ymin = -4;
p.ymax = 4;
clrscrn();
printf(" f : t-> %s \n", feq);
printf(" g : t-> %s\n\n", geq);
printf(" Draw the point P(f(t),g(t))\n\n"
" ... load \"a_main.plt\" ... with gnuplot.\n\n");
pause(10.E8);
do{
G_Curve_2d(p,
f,g,
t
);
pause(9.E7);
} while((t.value+=t.step)<t.max);
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : t-> a*sin(k1*t)
g : t-> b*cos(k2*t)
t = +0.50
Draw the point P(f(t),g(t))
... load "a_main.plt" ... with gnuplot.
Press return to continue.