Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Programming /  Tests /

AtomQ

FilledSmallSquare AtomQ[expr] yields True if expr is an expression which cannot be divided into subexpressions, and yields False otherwise.

FilledSmallSquare You can use AtomQ in a recursive procedure to tell when you have reached the bottom of the tree corresponding to an expression.
FilledSmallSquare AtomQ gives True for symbols, numbers, strings and other raw objects.
FilledSmallSquare AtomQ gives True on any object whose subparts cannot be accessed using functions like Map.
FilledSmallSquare See The Mathematica Book on the web: Section 2.3.5.
FilledSmallSquare See also: NumberQ, Head, LeafCount, Length.