Aller au contenu

Mathc initiation/Fichiers h : x 66a7

Un livre de Wikilivres.


Sommaire


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

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

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

CTRL_splot p;

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

   Gctn_2d(  p,
             f,g,
             DgDf,
             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-> 3*pow(sin(t),5)

 g : t-> 3*pow(cos(t),5)

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

 Press return to continue.