- The version 3.1 of the command interpreter library interpcom. It can be found at
or
- The cephes library of functions, that can be found at
Only the library of double precision routines (libmd.a) is used in funct.
- The gsl library (for the FFT routines) that can be found at
The graphic part of funct can be built in 3 different ways :
- The simplest and prefered one is to use GNU plotutils, that can be found at
and provides X11, PNG, GIF, Postscript and FIG graphics.
In the two other ways the PNG and Postscript graphics are done with the g2 graphical library that can be found at
or
This library uses the gd library (devoted to PNG images). It can befound at
The g2 library is supposed to use GIF images, but the new versions of gd work only with PNG. So a modification of the g2 library (at least for version 0.40) is necessary if one uses new versions of gd : replace two occurences of gdImageGif with gdImagePng, in the filesrc/GIF/g2_GIF.c of the g2 distribution.
For X11 graphics there are two choices :
- The allegro (see 1.2) or ggi libraries. Allegro can be found at
and ggi at
Type
make with-plot
if you want to use GNU plotutils for graphics. Otherwise
make with-allegro
to build funct with allegro or
make with-ggi
to build it with ggi.
The makefile supposes that the interpcom library has been
installed
together with
cephes, gsl and libplot if you use GNU
plotutils, g2,gd and ggi or allegro
if you don't.
The corresponding variables INTERPCOM, CONVERT,CEPHES
and
GRAPH in makefile can be modified. For example INTERPCOM
could be defined as :
INTERPCOM=where-interpcom_library_is/libinter.a
CONVERT gives the location of the utility interp-convert, which is a part of the interpcom package. The variable LINE_ED_LIB should correspond to the command line editing library that is used by interpcom. The default is GNU readline library. It may be necessary also to modify the name of the allegro library in src/makefile.allegro.
The graphics in the postscript documentation are produced together
with
funct. The PNG version of these graphics are in the
directory ./doc/html .
The first execution of funct will create the initialization file .funct-3.0 in the user's home directory. This file will be used as initialization file in subsequent executions of funct. It may be modified, for example to specify the names of custom command and result directories (see the documentation of interpcom).
It is possible to modify the size of X11 windows : it is defined by
the
variables x_win and y_win in a section !var
of .funct-3.0.
The programs in the funct tutorial can be executed by entering the instructions
- funct -> load demo.cmd
- funct -> all
and then following the instructions. The instructions
- funct -> load geom.cmd
- funct -> all_geom
will execute some geometry programs.