Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Tuning & Debugging > Symbol Handling >
Mathematica > Core Language > Package Development > Namespace Management > Symbol Handling >

SymbolName

SymbolName[symbol]
gives the name of the specified symbol.
The name of the symbol x is the string "x":
The name of the symbol x is the string "x":
In[1]:=
Click for copyable input
Out[1]//InputForm=
Symbol and SymbolName are inverses of each other:
Many functions of symbols also accept symbol names as arguments:
SymbolName always gives the short name, without any context:
ToString takes the settings of $Context and $ContextPath into account:
SymbolName evaluates its input:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team