Mathc initiation/0018
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; w.xmax = 2;
w.ymin = -1.0; w.ymax = 2.0;
tvalue Time;
Time.min = -2; Time.max = 2;
Time.step = 0.05;
printf(" h : x-> %s \n", heq);
printf(" h': x-> %s\n\n",Dheq);
printf(" The equation of the normal is : \n\n");
printf(" y = -1/h'(c) (x-c) + h(c) \n\n");
G_NorA(w,
Time,
heq,
h,
Dh);
printf(" load \"a_main.plt\" with gnuplot. \n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Résultat dans gnuplot |
---|
![]() |
Exemple de sortie écran :
h : x-> x**2
h': x-> 2*x
The equation of the normal is :
y = -1/h'(c) (x-c) + h(c)
load "a_main.plt" with gnuplot.
Press return to continue.