Mathc initiation/a110
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c1.c |
---|
/* --------------------------------- */
/* save as c00c1.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fc.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.value= -PI;
t.min = -PI;
t.max = PI;
t.step = .05;
tvalue L_tan;
L_tan.min = -.3;
L_tan.max = .3;
L_tan.step = .1;
clrscrn();
printf(" r(t) = f(t)i + g(t)j \n\n");
printf(" With \n\n");
printf(" f : t-> %s \n", feq);
printf(" g : t-> %s\n\n", geq);
printf(" Animate the tangent and the vector \n\n"
" ... load \"a_main.plt\" ... with gnuplot.\n\n");
do{
G_Curve_tang_2d( i_ctrl_splot(-0,10,-3,5, 0.,0., 0.,0., 0.,0.),
f,g,
t,
L_tan
);
pause(9.E7);
} while((t.value+=t.step)<t.max);
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
r(t) = f(t)i + g(t)j
With
f : t-> 4+sin(2*t)
g : t-> 1-3*cos(3*t)
Animate the tangent and the vector
... load "a_main.plt" ... with gnuplot.