Mathc initiation/Fichiers h : c30bc

Un livre de Wikilivres.


Sommaire


Installer ce fichier dans votre répertoire de travail.

fc.h
utilitaire
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
double f(
double x)
{
        return( ((1-cos(x))/x) );
}
/* --------------------------------- */
char  feq[] =   "(1-cos(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 [ -10.0:10.0] [-1.0:1.0]\
         (1-cos(x))/x
reset
# ---------------------


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