Mathc initiation/Fichiers h : c42fd


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;

w.xmin = -8.0; w.xmax = +8.0;
w.ymin = -8.0; w.ymax = +8.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)<1.2;)
    {

   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 exp(x**2) en langage c gnuplot


Exemple de sortie écran :
 Open the file "a_main.plt" with Gnuplot.

 Press return to continue.