Mathc initiation/Fichiers h : c61a4


Sommaire


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

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

  w.xmin = -0;
  w.xmax = +5;             
  w.ymin = -0;
  w.ymax = +5;
  
  t.value =   0.;
  t.min   =   0.; 
  t.max   =  1.5;  
  t.step  =  .03; 

 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(" Animate the vector function,             \n\n" 
        " ... load \"a_main.plt\" ... with gnuplot.\n\n");
  
  do{

  G_Curve_2d(w,
             f,g,
             t
            );
            
       pause(1.E8);
      
  } while((t.value+=t.step)<t.max);

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


Exemple de sortie écran :

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

 With 

 f : t-> t**2+t+.5  
 g : t-> t**3+.5

  Animate the vector function,

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