Aller au contenu

Mathc initiation/a253

Un livre de Wikilivres.


Sommaire


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

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

  n.min   =  1; 
  n.max   =  9;  
   
CTRL_splot w;

  w.xmin =  -1;
  w.xmax = +12;             
  w.ymin =  -1;
  w.ymax = +10;   

 clrscrn();
 printf(" Sketch the %.0f first term of the sequence [a_n]  \n\n\n"
        " a_n : a_1 + (n-1) r \n         %d + (n-1) %d\n\n",
          n.max, A_1, R);

      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 9 first term of the sequence [a_n]  


 a_n : a_1 + (n-1) r 
         1 + (n-1) 1

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

 Press return to continue.