Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00a1.c
/* ---------------------------------- */
/* save as c00a1.c                    */
/* ---------------------------------- */
#include  "x_hfile.h"
#include       "fa.h"
/* ---------------------------------- */
int main(void)
{
double c = 1.;

CTRL_splot w;

w.xmin = -2.0; w.xmax = +4.0,
w.ymin = -7.0; w.ymax = +5.0;

 clrscrn();
 
 printf("  f : x-> %s\n\n",   feq);
 printf("  f': x-> %s\n\n\n",Dfeq);

 printf(" With c = %0.3f, the equation of the tangent is :\n\n",c);
 printf("       y = f'(c) (x-c) + f(c) = ");
 
      eq_Tan( c,
              f,
              Df);
                         
     G_Tan  ( w,    
              c,
              f,feq,Df);

 printf("\n\n"
        " With gnuplot... load \"a_main.plt\"\n\n"); 
 stop();

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */



Exemple de sortie écran :
  f : x-> 3.0*x**2 - 2.0*x - 5.0

  f': x-> 6.0*x - 2.0


 With c = 1.000, the equation of the tangent is :

       y = f'(c) (x-c) + f(c) =  4.000*x -8.000

 With gnuplot... load "a_main.plt"

 Press return to continue.