freeze, thaw
replace an expression by a name
Calling Sequence
Parameters
Description
Examples
freeze(expr)
thaw(var)
expr
-
the expression to be ``frozen''
var
the ``frozen'' variable
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.
z≔freezex+y
z≔freeze/R0
thawz
x+y
e≔cos2x+sina+b
expande
2cosx2−1+sinacosb+cosasinb
subs2x=freeze2x,e
cosfreeze/R1+sina+b
expand
cosfreeze/R1+sinacosb+cosasinb
thaw
cos2x+sinacosb+cosasinb
See Also
frontend
Download Help Document