Mathc initiation/Fichiers h : c30bf

Un livre de Wikilivres.


Sommaire


Installer ce fichier dans votre répertoire de travail.

ff.h
utilitaire
/* --------------------------------- */
/* save as ff.h                      */
/* --------------------------------- */
double f(
double x)
{
        return( pow((1+x),(1./x)));
}
/* --------------------------------- */
char  feq[] =   "(1+x)**(1./x)";
/* --------------------------------- */


Fichier de commande gnuplot :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
#
set zeroaxis lt 3 lw 1
set grid
plot [ -1.5:1.5] [-1.:5.]\
           (1.+x)**(1./x),\
                   exp(1)
reset
# ---------------------


Dans ce fichier il y a la fonction f pour le fichier c2f.c