Mathc initiation/0016
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)
{
CTRL_splot w;
w.xmin = -10; w.xmax = 10;
w.ymin = -400; w.ymax = 300;
tvalue Time;
Time.min = -24; Time.max = 240;
Time.step = 1;
printf(" g : x-> %s \n", geq);
printf(" g': x-> %s\n\n",Dgeq);
printf(" The equation of the tangent is : \n\n");
printf(" y = g'(c) (x-c) + g(c) \n\n");
G_TanA(w,
Time,
geq,
g,
Dg);
printf(" load \"a_main.plt\" with gnuplot. \n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Résultat dans gnuplot |
---|
![]() |
Exemple de sortie écran :
g : x-> 3*x**2-2*x-5
g': x-> 6*x-2
The equation of the tangent is :
y = g'(c) (x-c) + g(c)
load "a_main.plt" with gnuplot.
Press return to continue.