Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Expression Structure  /
Head

  • Head[ expr ] gives the head of expr.
  • Examples: Head[f[x]]; Head[a + b]; Head[4]; Head[x].
  • See the Mathematica book: Section 2.1.1Section 2.1.1.

    Further Examples

    Here are the heads of various numbers in Mathematica.

    In[1]:=

    Out[1]=

    Looking at the heads of these expressions gives some insight into their internal representation. For the whole story, use FullForm.

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.