Mathc initiation/0015
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 = -2*PI; w.xmax = 2*PI;
w.ymin = -4; w.ymax = 8;
tvalue Time;
Time.min = -2; Time.max = 2;
Time.step = 0.1;
printf(" f : x-> %s \n", feq);
printf(" f': x-> %s\n\n",Dfeq);
printf(" The equation of the tangent is : \n\n");
printf(" y = f'(c) (x-c) + f(c) \n\n");
G_TanA(w,
Time,
feq,
f,
Df);
printf(" load \"a_main.plt\" with gnuplot. \n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Résultat dans gnuplot |
---|
![]() |
Exemple de sortie écran :
f : x-> cos(x)
f': x-> (-sin(x))
The equation of the tangent is :
y = f'(c) (x-c) + f(c)
load "a_main.plt" with gnuplot.
Press return to continue.