Mathc initiation/Fichiers h : c30bb


Sommaire


Installer ce fichier dans votre répertoire de travail.

fb.h
utilitaire
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
double f(
double x)
{
        return( (sin(x)-7*x)/(x*cos(x)) );
}
/* --------------------------------- */
char  feq[] =   "( sin(x)-7*x ) / (x*cos(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] [-20.0:5.0]\
         (sin(x)-7*x) / (x*cos(x)),\
         -6
reset
# ---------------------

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