Mathc initiation/Fichiers h : c62a3


Sommaire


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

c00b.c
/* --------------------------------- */
/* save as c00b.c                    */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fb.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
tvalue     t;

  w.xmin =  -.5;
  w.xmax = +1.5;             
  w.ymin =   -2;
  w.ymax =   +2;
  	
  t.value =   1.;
  t.min   =   0.; 
  t.max   = 2*PI;  
  t.step  =   .1;   

 clrscrn();
 
 printf(" r(t) = f(t)i + g(t)j \n\n");
 printf(" With \n\n");
 printf(" f : t-> %s  \n", feq);
 printf(" g : t-> %s\n\n", geq);
 printf(" t = %+.2f \n\n", t.value);

  G_Curve_2d(w,
             f,g,
             t
            );

 printf(" Draw the vectors at the point P(f(t),g(t)),\n\n" 
        " ... load \"a_main.plt\" ... with gnuplot.  \n\n");
 
 stop();

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


Exemple de sortie écran :

 r(t) = f(t)i + g(t)j 

 With 

 f : t-> cos(t)**2  
 g : t-> 2*sin(t)

 t = +1.00 

 Draw the vectors at the point P(f(t),g(t)),

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

 Press return to continue.