Sommaire


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 = -4.0; w.xmax = +4.0,
w.ymin = -6.0; w.ymax = +4.0;

tvalue c;

  c.value = -1.5; 
  c.min   = -1.5; 
  c.max   =   2.;  
  c.step  =  .03; 
  
 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-> 3.0*x**2 - 2.0*x - 5.0

  f': x-> 6.0*x - 2.0

 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