Previous: Finding Functions or Macros Defined in MAXIMA Up: Helpful Hints to MAXIMA Programmers Next: Loading CL Code into MAXIMA

MAXIMA init Files

Several initialization files, if in place, are loaded into every maxima when you enter maxima top-level the first time by typing (run). The file /usr/local/maxima/obj/maximarc.lsp is a CL file which is loaded into every maxima. Therefore it is the place we put fixes for MAXIMA bugs.

For each individual user, the file .maxima.lsp in the home directory is a private init file which will be loaded after loading maximarc.lsp. For example, one may have the following lines in one's .maxima.lsp file.


(loadfile "file1.lsp")
(loadfile "file2.lsp")
(setq $fpprec 30)

The effect of this file (when loaded automatically into maxima) is to cause loading of the two indicated CL files and the setting of the variable $fpprec to 30.

After loading the above two initialization files, maxima looks for a file under the name .maxima-wd.lsp in the current working directory. If found it is also loaded. This allows different initialization to be done if the maxima system is invoked in different working directories. Thus, for example, one may have a finite-element .maxima-wd.lsp in one directory and a factoring .maxima-wd.lsp in another directory. This makes working with MAXIMA under different testing conditions much easier.

farrell@mcs.kent.edu