HoldForm

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (4)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]=
Introduced in 1988
(1.0)