Function: batch (<filename>) Reads Maxima expressions from <filename> and evaluates them.
batch searches for <filename> in the list
<filename> comprises a sequence of Maxima expressions, each terminated with
$. 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
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
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 ones thinking in solving complex problems.
batch evaluates its argument.
batch has no return value.
There are also some inexact matches for
?? batch to see them.
(%o1) true (%i2)