DOCUMENTATION CENTER SEARCH
Mathematica
>
Expression Structure
>
Built-in
Mathematica
Symbol
Expressions as Trees
Levels in Expressions
Tutorials »
|
ArrayDepth
Level
LeafCount
Length
Nest
See Also »
|
Expressions
Expression Structure
Memory Measurement & Optimization
More About »
Depth
Depth
[
expr
]
gives the maximum number of indices needed to specify any part of
expr
, plus one.
MORE INFORMATION
Raw objects have depth
1
.
The computation of
Depth
does not include heads of expressions.
Depth
treats
SparseArray
objects just like the corresponding ordinary lists.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
In[1]:=
Out[1]=
In[2]:=
Out[2]=
In[3]:=
Out[3]=
In[4]:=
Out[4]=
Scope
(3)
Generalizations & Extensions
(1)
Applications
(2)
Properties & Relations
(2)
Possible Issues
(1)
SEE ALSO
ArrayDepth
Level
LeafCount
Length
Nest
TUTORIALS
Expressions as Trees
Levels in Expressions
MORE ABOUT
Expressions
Expression Structure
Memory Measurement & Optimization
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1 | Last modified in 5
© 2008 Wolfram Research, Inc.