Mathc initiation/a135
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b1.c |
---|
/* --------------------------------- */
/* save as c00b1.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fb.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.value = 0.;
t.min = 0.;
t.max = 2*PI;
t.step = .05;
clrscrn();
printf(" r(t) = f(t)i + g(t)j + h(t)k \n\n");
printf(" With \n\n");
printf(" f : t-> %s \n", feq);
printf(" g : t-> %s \n", geq);
printf(" h : t-> %s\n\n", heq);
printf(" t = %+.2f \n\n", t.value);
printf(" Animate the velocity and accelerator vectors\n\n"
" ... load \"a_main.plt\" ... with gnuplot. \n\n");
axe_3d();
do{
G_Curve_3d(
f,g,h,
t
);
pause(9.E7);
} while((t.value+=t.step)<t.max);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
r(t) = f(t)i + g(t)j + h(t)k
With
f : t-> exp(sin(2*t)**2)
g : t-> exp(-cos(t))
h : t-> sin(t)
t = +0.00
Animate the velocity and accelerator vectors
... load "a_main.plt" ... with gnuplot.