expandoff - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Expression Manipulation : Expanding : expandoff

expandoff

suppress expansion of function(s)

expandon

unsuppress expansion of function(s)

 

Calling Sequence

Parameters

Description

Examples

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

expand(expandoff());

expandoff

(1)

expandoff(exp);

expand(exp(a+b));

ⅇa+b

(2)

expand(expandon());

expandon

(3)

expandon(exp);

expand(exp(c+d));

ⅇcⅇd

(4)

expand(exp(a+b));

ⅇa+b

(5)

The last example remains unexpanded because of option remember.

See Also

expand

remember