lmxchar SciMax Toolbox loadfile

SciMax Toolbox >> Load

Load

Scilab equivalent of the Maxima Function load

Calling Sequence

load (filename)

Description

Evaluates expressions in filename, thus bringing variables, functions, and other objects into Maxima. The binding of any existing object is clobbered by the binding recovered from filename. To find the file, load calls file_search with file_search_maxima and file_search_lisp as the search directories. If load succeeds, it returns the name of the file. Otherwise load prints an error message.

load works equally well for Lisp code and Maxima code. Files created by save, translate_file, and compile_file, which create Lisp code, and stringout, which creates Maxima code, can all be processed by load. load calls loadfile to load Lisp files and batchload to load Maxima files.

load does not recognize :lisp constructs in Maxima files, and while processing filename, the global variables _, __, %, and %th have whatever bindings they had when load was called.

See also , , , and . loadfile processes Lisp files; batch, batchload, and demo process Maxima files.

See for more detail about the file search mechanism.

load evaluates its argument.

lmxchar SciMax Toolbox loadfile