Mathc initiation/a180
Apparence
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.value = 0.5;
t.min = 0.;
t.max = 2.*PI;
t.step = .1;
CTRL_splot p;
p.xmin = -2;
p.xmax = 2;
p.ymin = -1;
p.ymax = 1;
clrscrn();
printf(" f : t-> %s \n", feq);
printf(" g : t-> %s\n\n", geq);
printf(" t = %+.2f \n\n", t.value);
G_Curve_2d(p,
f,g,
t
);
printf(" Draw the point P(f(t),g(t))\n\n"
" ... load \"a_main.plt\" ... with gnuplot.\n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
f : t-> cos(t)
g : t-> sin(t)
t = +0.50
Draw the point P(f(t),g(t))
... load "a_main.plt" ... with gnuplot.
Press return to continue.