Maxima Function
save (filename, name_1, name_2, name_3, ...)
save(filename,values,functions,labels,...)
save(filename,[m,n])
save(filename,name_1=expr_1,...)
save(filename,all)
save(filename,name_1=expr_1,name_2=expr_2,...)
Stores the current values of name_1, name_2, name_3, ..., in filename.
The arguments are the names of variables, functions, or other objects.
If a name has no value or function associated with it, it is ignored.
save
returns filename.
save
stores data in the form of Lisp expressions.
The data stored by save
may be recovered by load (filename)
.
The global flag file_output_append
governs
whether save
appends or truncates the output file.
When file_output_append
is true
,
save
appends to the output file.
Otherwise, save
truncates the output file.
In either case, save
creates the file if it does not yet exist.
The special form save (filename, values, functions, labels, ...)
stores the items named by values
, functions
, labels
, etc.
The names may be any specified by the variable infolists
.
values
comprises all user-defined variables.
The special form save (filename, [m, n])
stores the values of
input and output labels m through n.
Note that m and n must be literal integers.
Input and output labels may also be stored one by one, e.g., save ("foo.1", %i42, %o42)
.
save (filename, labels)
stores all input and output labels.
When the stored labels are recovered, they clobber existing labels.
The special form save (filename, name_1=expr_1, name_2=expr_2, ...)
stores the values of expr_1, expr_2, ...,
with names name_1, name_2, ....
It is useful to apply this form to input and output labels, e.g., save ("foo.1", aa=%o88)
.
The right-hand side of the equality in this form may be any expression, which is evaluated.
This form does not introduce the new names into the current Maxima environment,
but only stores them in filename.
These special forms and the general form of save
may be mixed at will.
For example, save (filename, aa, bb, cc=42, functions, [11, 17])
.
The special form save (filename, all)
stores the current state of Maxima.
This includes all user-defined variables, functions, arrays, etc., as well
as some automatically defined items.
The saved items include system variables,
such as file_search_maxima
or showtime
, if they have been assigned new values by the user;
see myoptions
.
save
evaluates filename and quotes all other arguments.