MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

What is "Depth of Atomic Objects" ?

The Mathematica Help in A.1.4 says "Atomic objects in Mathematica are
considered to have depth 0 and yield True when tested with AtomQ."
For example, numeric 4 is Integer and must be a Atomic object.
Then I try the function Depth and AtomQ ;
Depth[4] returns depth "1". And AtomQ[4] returns "True".
Why can the function Depth return depth "0" ?
I wonder if meaning of the function "Depth" differs from the word
But I feel somthing strange.
How can I understand this ?

  • Prev by Date: Re: Shortest Path Problem
  • Next by Date: Multiple Computations
  • Previous by thread: Re: Re: Optimization problem
  • Next by thread: Re: What is "Depth of Atomic Objects" ?