### The Maxima on-line user's manual

Algebra Calculator

#### Batch

Function: batch (<filename>) Reads Maxima expressions from <filename> and evaluates them. `batch` searches for <filename> in the list `file_search_maxima`. See `file_search`.

<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 ones thinking in solving complex problems.

`batch` evaluates its argument. `batch` has no return value.

See also `load`, `batchload`, and `demo`.

There are also some inexact matches for `batch`. Try `?? batch` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### batch

batch;

Calculate

batch(solve_rec);

tt1: t[n] = tanh( t[n...

Calculate

##### batch-tanh

batch(solve_rec);

tt1: t[n] = tanh( t[n...

solve_rec(tt1, fb);

Calculate

##### batch-tanh

batch(solve_rec);

tt1: t[n] = tanh( t[n...

solve_rec(tt1, t[n+1]);

Calculate

##### batch

batch(solve_rec);

deq1: g[n+2] - 2*g[n+...

solve_rec(deq1, g[n]);

Calculate

/* MATRICE U */u: mat...

eigenvalues (u);

eigenvectors (u);

Calculate

##### batch

batch(solve_rec);

deq1: g[n+2] +2*g[n+1...

solve_rec(deq1, g[n]);

Calculate

##### batch

batch(solve_rec);

solve_rec(1+1, 2*3, 8...

Calculate

/* MATRICE U */u: mat...

eigenvalues (u);

eigenvectors (u);

Calculate

##### batch-eliminate

batch(solve_rec);

eq1: WINEamt[t] = WIN...

eq2: WATERamt[t] = WA...

Calculate