Maxima Function
%th (i)
The value of the i'th previous output expression.
That is, if the next expression to be computed is the n'th output,
%th (m) is the (n - m)'th output.
%th is useful in batch files or for referring to a group of output expressions.
For example,
block (s: 0, for i:1 thru 10 do s: s + %th (i))$
sets s to the sum of the last ten output expressions.
%th is recognized by batch and load.
In a file processed by batch,
%th has the same meaning as at the interactive prompt.
In a file processed by load,
%th refers to output expressions most recently computed at the interactive prompt
or in a batch file;
%th does not refer to output expressions in the file being processed.