Atomic Elements of Expressions

All expressions in Mathematica are ultimately built from a small number of distinct types of atomic elements.

ReferenceReference

AtomQ test whether an expression is an atom

Head find the head of any expression, including an atom

Symbols »

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

SymbolName ▪ Context ▪ Remove ▪ Names ▪ NameQ ▪ ...

Strings »

String the head of a string

StringQ ▪ Characters ▪ ToCharacterCode ▪ StringLength ▪ ToExpression ▪ ...

Numbers »

Integer ▪ Real ▪ Rational ▪ Complex

NumberQ test for a number of any type

IntegerDigits ▪ RealDigits ▪ Precision ▪ MachineNumberQ ▪ ...

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