freeze, thaw - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : freeze

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 name and not a rational number), 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

zfreezex+y

z:=freeze/R0

(1)

thawz

x+y

(2)

ecos2x+sina+b

e:=cos2x+sina+b

(3)

expande

2cosx21+sinacosb+cosasinb

(4)

subs2x=freeze2x,e

cosfreeze/R1+sina+b

(5)

expand

cosfreeze/R1+sinacosb+cosasinb

(6)

thaw

cos2x+sinacosb+cosasinb

(7)

See Also

frontend

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam