Mathc initiation/Fichiers h : c41fc


Sommaire


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

c00c1.c
/* --------------------------------- */
/* save as  c00c1.c                  */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fc.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;

w.xmin = -2.0; w.xmax = +12.0;
w.ymin = -5.0; w.ymax =  +2.0;

double     x = 1.0;
double cstep = 0.1;

 clrscrn();

 printf(" open the file \"a_main.plt\" with Gnuplot.\n\n"
        " Use the command replot of gnuplot         \n\n");

 for(;(x+=.03)<6.0;)
    {

   circle(1./K_y_2d(f,x),
          h_y_2d(f,x),
          k_y_2d(f,x),
          cstep);

   G_C_2d(w,
          f,x,
          feq
          );

          pause(9.E7);
    }

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Calculer la courbure pour une fonction log(x-1) en langage c gnuplot
Exemple de sortie écran :
 Open the file "a_main.plt" with Gnuplot.

 Press return to continue.