next up previous contents index
Next: 2. Theoretical background Up: 1. Description and installation Previous: 1.1 Introduction   Contents   Index

Subsections


1.2 Installation

1.2.1 Requirements

- The version 3.1 of the command interpreter library interpcom. It can be found at

ftp://ftp.ibiblio.org/pub/Linux/system/shells

or

http://www.math.jussieu.fr/~drezet


- The cephes library of functions, that can be found at

ftp://ftp.ibiblio.org/pub/Linux/lang/c

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

ftp://ftp.gnu.org/gnu/


The graphic part of funct can be built in 4 different ways :

- The simplest and prefered ones are to use GNU plotutils, that can be found at

ftp://ftp.gnu.org/gnu/

and provides X11, PNG, GIF, Postscript and FIG graphics, or g2, that can be found at

http://g2.sourceforge.net

and provides X11, PNG and Postscript graphics. The g2 library uses the gd library that can be found at

ftp://ftp.boutell.com/pub/boutell/gd/


In the two other ways the PNG and Postscript graphics are done with g2. For X11 graphics there are two choices :

- The allegro or ggi libraries. Allegro can be found at

http://alleg.sourceforge.net/

and ggi at

http://www.ggi-project.org/

The version of funct using g2 and allegro has been ported to BeOS.


1.2.2 Compilation

As indicated previously, the graphic part of funct can be built in 4 different ways. Type


make with-plot


if you want to use GNU plotutils for graphics. Otherwise


make with-g2

to use g2,


make with-allegro


to build funct with allegro or


make with-ggi


to build it with ggi. The corresponding name of the executable in the directory bin/ will be respectively funct_plot, funct_g2, funct_allegro and funct_ggi .

The makefile supposes that the interpcom library has been installed together with
cephes, gsl and the graphic libraries that you use. 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 versions of these graphics are in the directory ./doc/html .


1.2.3 Initialization file

The first execution of funct will create the initialization file .funct-3.1 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.1. The default values are 800 and 750 respectively. They can be kept for a screen resolution of 1280x1024 . For 1024x768, 600 and 600 would be more convenient.


1.2.4 Demonstration programs

The programs in the funct tutorial can be executed by entering the instructions


 - funct -> load demo.cmd
 - funct -> all


will execute some programs using functions. The instructions


 - funct -> load geom.cmd
 - funct -> all_geom


will execute some geometry programs.


next up previous contents index
Next: 2. Theoretical background Up: 1. Description and installation Previous: 1.1 Introduction   Contents   Index
jmdr 2004-03-14