Mathc initiation/Fichiers h : c28a3


Sommaire


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

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

  t.value =        0.; 	
  t.min   =        0.; 
  t.max   =     2.*PI;  
  t.step  =       .05;  

CTRL_splot p;

  p.xmin = -5;
  p.xmax =  5;             
  p.ymin = -5;
  p.ymax =  5;
  	
 clrscrn();

 printf(" Let C be the curve consisting of all ordered pairs (f(t),g(t)).\n\n");
 printf(" With\n\n");
 printf(" f : t-> %s\n\n", feq);
 printf(" g : t-> %s\n\n", geq);

 printf(" ... load \"a_main.plt\" ... with gnuplot.  \n\n"
        " with Gnuplot constantly during the animation.\n\n"
        " See the video -> 8:24 / 46:20\n\n");

 for(;t.value<t.max;t.value+=t.step)
   {
   Gctn_2d(  p,
             f,g,
             DgDf,
             t
            );
             
     pause(9.E7);
    }

 stop();

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */
A parametric curve with a tangent and a normal in language c and gnuplot

Exemple de sortie écran :

 Let C be the curve consisting of all ordered pairs (f(t),g(t)).

 With

 f : t-> cos(t)

 g : t-> sin(t)

 To see the curve C, open the file "a_main.plt" with Gnuplot.