freeze - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


freeze, thaw

replace an expression by a name

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

freeze(expr)

thaw(var)

Parameters

expr

-

the expression to be ``frozen''

var

-

the ``frozen'' variable

Description

• 

freeze replaces its argument, expr (not a complex or real numeric constant, a name, or a string), with a name of the form freeze/R0, freeze/R1, ...

• 

To return the original expression the thaw function must be used.

• 

This can be used to prevent parts of an expression from being subjected to the effects of symbolic manipulation.

Examples

> 

z≔freeze⁡x+y

z≔freeze/R0

(1)
> 

thaw⁡z

x+y

(2)
> 

e≔cos⁡2⁢x+sin⁡a+b

e≔cos⁡2⁢x+sin⁡a+b

(3)
> 

expand⁡e

2⁢cos⁡x2−1+sin⁡a⁢cos⁡b+cos⁡a⁢sin⁡b

(4)
> 

subs⁡2⁢x=freeze⁡2⁢x,e

cos⁡freeze/R1+sin⁡a+b

(5)
> 

expand⁡

cos⁡freeze/R1+sin⁡a⁢cos⁡b+cos⁡a⁢sin⁡b

(6)
> 

thaw⁡

cos⁡2⁢x+sin⁡a⁢cos⁡b+cos⁡a⁢sin⁡b

(7)

See Also

frontend