Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Programming  /
Symbol

  • Symbol[" name "] refers to a symbol with the specified name.
  • All symbols, whether explicitly entered using Symbol or not, have head Symbol.
  • x _Symbol can be used as a pattern to represent any symbol.
  • The string " name " in Symbol[" name "] must be an appropriate name for a symbol. It can contain any letters, letter-like forms, or digits, but cannot start with a digit.
  • Symbol[" name "] creates a new symbol if none exists with the specified name.
  • A symbol such as x has a name "x".
  • If Symbol[" name "] creates a new symbol, it does so in the context specified by $Context.
  • See the Mathematica book: Section 2.3.4, Section 2.6.12Section A.1.4.
  • See also: SymbolName, ToExpression, Unique, Remove.

    Further Examples

    Built-in constants and symbols without a value have head Symbol.

    In[1]:=

    Out[1]=



    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.