Mathc initiation/a350
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
![]() |
c00a2.c |
---|
/* ---------------------------------- */
/* save as c00a2.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* ---------------------------------- */
int main(void)
{
CTRL_splot w;
w.xmin = -7.0; w.xmax = +7.0,
w.ymin = -2.0; w.ymax = +2.0;
tvalue c;
c.value = -5.0;
c.min = -5.0;
c.max = +5.0;
c.step = +.1;
clrscrn();
printf(" f : x-> %s\n\n", feq);
printf(" f': x-> %s\n\n",Dfeq);
printf(" The equation of the tangent is : \n\n\n\n");
printf(" y = f'(c) (x-c) + f(c)\n\n\n\n");
printf(" Open the file ... load \"a_main.plt\" ... with gnuplot.\n\n"
" Use the key shift return ... shift return ... into gnuplot \n\n");
do{
G_Tan ( w,
c.value,
f,feq,Df
);
pause(9.E7);
} while((c.value+=c.step)<c.max);
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
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)
Open the file ... load "a_main.plt" ... with gnuplot.
Use the key shift return ... shift return ... into gnuplot