Mathc initiation/Fichiers h : c29bc
Installer et compiler ces fichiers dans votre répertoire de travail.
c0te.c |
---|
/* --------------------------------- */
/* save as c0te.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fe.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.value = 2.1;
t.min = 0.;
t.max = 2.*PI;
t.step = .05;
CTRL_splot p;
p.xmin = -4;
p.xmax = 4;
p.ymin = -4;
p.ymax = 4;
clrscrn();
printf(" Let C be the curve consisting of all ordered pairs (f(t),g(t)).\n\n");
printf(" With\n\n");
printf(" f : t-> %s\n\n", feq);
printf(" g : t-> %s\n\n", geq);
Gct_2d( p,
f,g,
DgDf,
t
);
printf(" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
Let C be the curve consisting of all ordered pairs (f(t),g(t)).
With
f : t-> a*sin(k1*t)
g : t-> b*cos(k2*t)
To see the curve C, open the file "a_main.plt" with Gnuplot.
Press return to continue.