HoldForm
Usage
Notes
Further Examples
While both Hold and HoldForm keep expressions unevaluated, Hold is shown in the output while Holdform is not.
In[1]:=
|
Out[1]=
|
In[2]:=
|
Out[2]=
|
You can see the HoldForm with FullForm.
In[3]:=
|
Out[3]//FullForm=
|
This evaluates the sum of the squares of the first positive integers.
In[4]:=
|
Out[4]=
|
This displays the sum in unevaluated form.
In[5]:=
|
Out[5]=
|
The function ReleaseHold removes Hold and HoldForm, allowing the expressions they contain to evaluate.
In[6]:=
|
Out[6]=
|
|