
filename comprises a sequence of Maxima expressions, each terminated with ; or $.
The special variable % and the function %th refer to previous results within the file. The file may
include :lisp constructs. Spaces, tabs, and newlines in the file are ignored. A suitable input file
may be created by a text editor or by the stringout function.
batch reads each input expression from filename, displays the input to the console,
computes the corresponding output expression, and displays the output expression. Input labels
are assigned to the input expressions and output labels are assigned to the output expressions.
batch evaluates every input expression in the file unless there is an error. If user input is
requested (by asksign or askinteger, for example) batch pauses to collect the requisite input
and then continue.
It may be possible to halt batch by typing control-C at the console. The effect of
control-C depends on the underlying Lisp implementation.
batch has several uses, such as to provide a reservoir for working command lines, to
give error-free demonstrations, or to help organize one's thinking in solving complex problems.
batch evaluates its argument. batch has no return value.
See also load, batchload, and demo.
Функция: batchload (filename)
Reads Maxima expressions from filename and evaluates them, without displaying the
input or output expressions and without assigning labels to output expressions. Printed output
(such as produced by print or describe) is displayed, however.
The special variable % and the function %th refer to previous results from the interactive
interpreter, not results within the file. The file cannot include :lisp constructs.
batchload returns the path of filename, as a string. batchload evaluates its argument.
See also batch and load.
Функция: closefile ()
Closes the transcript file opened by writefile or appendfile.
Функция: collapse (expr)
Collapses-разрушает expr by causing all of its common (например, equal)
subexpressions to share (i.e., use the same cells), there by saving space. (collapse is a
subroutine used by the optimize command.) Thus, calling collapse may be useful after
loading in a save file. You can collapse several expressions together by using collapse ([expr_1,
..., expr_n]). Similarly, you can collapse the elements of the array A by doing collapse
(listarray ('A)).
Функция: concat (arg_1, arg_2, ...)
Concatenates-объединяет its arguments. The arguments must evaluate to atoms. The
return value is a symbol if the first argument is a symbol and a Maxima string otherwise.
concat evaluates its arguments. The single quote ' prevents-препятствует evaluation.
Примеры (в КОНСОЛИ):
(%i1) y: 7$
(%i2) z: 88$
(%i3) concat (y, z/2);
(%o3) 744
(%i4) concat ('y, z/2);
(%o4) y44
86