Mathc initiation/a370

Un livre de Wikilivres.


Sommaire


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

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

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

  w.xmin =  -1.;
  w.xmax =  +10;             
  w.ymin =  -.5;
  w.ymax = +3.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 : (1.+1./n)^n

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

 Press return to continue.