HoldForm

HoldForm[expr]

prints as the expression expr, with expr maintained in an unevaluated form.

Details

Examples

open allclose all

Basic Examples  (4)

Addition in held form:

In[1]:=
Click for copyable input
Out[1]=

An unevaluated assignment:

In[1]:=
Click for copyable input
Out[1]=

An unevaluated power:

In[1]:=
Click for copyable input
Out[1]=

Evaluate the expression by applying ReleaseHold:

In[2]:=
Click for copyable input
Out[2]=

Show a formula and its evaluation:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Properties & Relations  (1)

See Also

Hold  Defer  ToString  WriteString  DisableFormatting

Tutorials

Introduced in 1988
(1.0)