Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Atomic Elements of Expressions >

AtomQ

AtomQ[expr]
yields True if expr is an expression which cannot be divided into subexpressions, and yields False otherwise.
  • You can use AtomQ in a recursive procedure to tell when you have reached the bottom of the tree corresponding to an expression.
  • AtomQ gives True for symbols, numbers, strings and other raw objects, such as sparse arrays.
  • AtomQ gives True for any object whose subparts cannot be accessed using functions like Map.
New in 1 | Last modified in 5
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team