This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

HoldForm

HoldForm[expr]
prints as the expression expr, with expr maintained in an unevaluated form.
  • HoldForm allows you to see the output form of an expression without evaluating the expression.
Addition in held form:
An unevaluated assignment:
An unevaluated power:
Evaluate the expression by applying ReleaseHold:
Show a formula and its evaluation:
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]=
Display a sum of squares in unevaluated form:
HoldForm displays without a wrapper:
See the FullForm expression:
Hold gives the held expression with a wrapper:
New in 1