Mathc initiation/Fichiers h : c46a3
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 = 4.;
t.min = 0.;
t.max = 6.*PI;
t.step = .01;
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);
G_Curve_3d(
f,g,h,
t
);
printf(" Draw the vectors at the point P(f(t),g(t),h(t)),\n\n"
" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
r(t) = f(t)i + g(t)j + h(t)k
With
f : t-> cos(t)
g : t-> sin(t)
h : t-> t
t = +4.00
Draw the vectors at the point P(f(t),g(t),h(t)),
... load "a_main.plt" ... with gnuplot.
Press return to continue.