Mathc initiation/a251
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c0b1.c |
|---|
/* --------------------------------- */
/* save as c0b1.c */
/* --------------------------------- */
#include "x_afile.h"
#include "fb.h"
/* --------------------------------- */
int main(void)
{
tvalue n;
n.min = 1;
n.max = 9;
CTRL_splot w;
w.xmin = -1;
w.xmax = +12;
w.ymin = -350;
w.ymax = +10;
clrscrn();
printf(" Sketch the %.0f first term of the sequence [a_n] \n\n\n"
" a_n : a_1 r**(n-1) \n %.2f %.2f**(n-1) \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 r**(n-1)
-336.00 0.33**(n-1)
... load "a_main.plt" ... with gnuplot.
Press return to continue.