Maxima Function
collapse (expr)
Collapses expr by causing all of its
common (i.e., equal) subexpressions to share (i.e., use the same cells),
thereby 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))
.