expandoff - Maple Programming Help

expandoff

suppress expansion of function(s)

expandon

unsuppress expansion of function(s)

 Calling Sequence expandoff(f1, f2, ...) expandon(f1, f2, ...)

Parameters

 f1, f2, ... - function names

Description

 • A call to expandoff suppresses the expansion of the functions listed. If no arguments are passed, the expansion of all functions is suppressed.
 • Conversely, expandon unsuppresses the expansion of the functions listed. If no arguments are passed, expansion of all functions is reasserted.
 • Both functions return NULL as the result.
 • Note that expand uses option remember. See the examples below.
 • The expandoff function should be defined by the command expand(expandoff()) before it is used. The expandon function should be defined by the command expand(expandon()) before it is used.

Examples

 > $\mathrm{expand}\left(\mathrm{expandoff}\left(\right)\right)$
 ${\mathrm{expandoff}}{}\left(\right)$ (1)
 > $\mathrm{expandoff}\left(\mathrm{exp}\right)$
 > $\mathrm{expand}\left(\mathrm{exp}\left(a+b\right)\right)$
 ${{ⅇ}}^{{a}{+}{b}}$ (2)
 > $\mathrm{expand}\left(\mathrm{expandon}\left(\right)\right)$
 ${\mathrm{expandon}}{}\left(\right)$ (3)
 > $\mathrm{expandon}\left(\mathrm{exp}\right)$
 > $\mathrm{expand}\left(\mathrm{exp}\left(c+d\right)\right)$
 ${{ⅇ}}^{{c}}{}{{ⅇ}}^{{d}}$ (4)
 > $\mathrm{expand}\left(\mathrm{exp}\left(a+b\right)\right)$
 ${{ⅇ}}^{{a}{+}{b}}$ (5)

The last example remains unexpanded because of option remember.