Symbol Handling

Mathematica symbols are the ultimate atoms of symbolic data. Every symbol has a unique name, exists in a certain Mathematica context or namespace, and can have a variety of types of values and attributes.

ReferenceReference

Symbol the head of a symbol; create a symbol from a name

SymbolName give the name of a symbol as a string

Context give the name of the context of a symbol

Names find a list of symbols with names matching a pattern

NameQ test whether a string corresponds to the name of any symbol

Remove completely remove a symbol so its name is no longer recognized

$NewSymbol a function to be applied to the name of any new symbol

ValueQ test whether a symbol has any type of value

OwnValues ▪ DownValues ▪ UpValues ▪ Options ▪ Attributes

Information give information on the values of a symbol

Clear clear all values associated with a symbol

Save save values associated with a symbol

Unique generate a symbol with a unique name

Converting between Expressions and Strings »

ToString ▪ ToExpression ▪ ...

New to Mathematica? Find your learning path »
Have a question? Ask support »