Aller au contenu

Mathc initiation/a368

Un livre de Wikilivres.


Sommaire


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

c00a.c
/* --------------------------------- */
/* save as c00a.c                    */
/* --------------------------------- */
#include  "x_afile.h"
#include       "fa.h"
/* --------------------------------- */
int main(void)
{
tvalue     n;

  n.min   =  0; 
  n.max   = 10;  
   
CTRL_splot w;

  w.xmin =  -1;
  w.xmax = +11;             
  w.ymin = -.2;
  w.ymax = +.5;   

 clrscrn();
 
 printf(" Sketch the %.0f first term of the sequence [a_n]  \n\n\n"
        " a_n : %s\n\n",n.max, a_neq);

      G_a_n(w,
            n,a_n);

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

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


Exemple de sortie écran :

 Sketch the 10 first term of the sequence [a_n]  


 a_n : n / (3*n+2)

 ... load "a_main.plt" ... with gnuplot.

 Press return to continue.