Mathc initiation/Fichiers h : c30be

Un livre de Wikilivres.


Sommaire


Installer ce fichier dans votre répertoire de travail.

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



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


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