Mathc initiation/Fichiers h : c73a2


Sommaire


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

c00a.c
/* --------------------------------- */
/* save as  c00a.c                   */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fa.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
	
  t.min   =        0.; 
  t.max   =     2.*PI;  
  t.step  =       .01;  

CTRL_splot p;

  p.xmin = -2;
  p.xmax =  2;             
  p.ymin = -1;
  p.ymax =  1;
  	
 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);

     Gc_2d(  p,
             f,
             g,
             t
            );

 printf(" ... load \"a_main.plt\" ... with gnuplot.  \n\n");

 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.

 Press return to continue.