PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Expressions
>
Expression Structure
>
Built-in
Mathematica
Symbol
Expressions as Trees
Tutorials »
|
FullForm
MatrixForm
TreePlot
See Also »
|
Expressions
Expression Structure
New in 6.0: Core Language
More About »
TreeForm
TreeForm
[
expr
]
displays
expr
as a tree with different levels at different depths.
TreeForm
[
expr
,
n
]
displays
expr
as a tree only down to level
n
.
MORE INFORMATION
With a notebook front end,
TreeForm
displays as a graphical tree in
StandardForm
and
TraditionalForm
.
TreeForm
takes the same options as
TreePlot
.
VertexLabeling
->
Automatic
does not display expression fragments at each node, but still gives subtree expression as tooltips.
VertexLabeling
->
False
does not give expression fragments or tooltips.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
A symbolic expression formatted as a tree:
In[1]:=
Out[1]//TreeForm=
Show the tree form for the first two levels in the expression:
In[1]:=
Out[1]=
In[2]:=
Out[2]//TreeForm=
A graphics expression formatted as a tree:
In[1]:=
Out[1]//TreeForm=
Scope
(9)
Options
(14)
Properties & Relations
(4)
Possible Issues
(1)
Neat Examples
(2)
SEE ALSO
FullForm
MatrixForm
TreePlot
TUTORIALS
Expressions as Trees
MORE ABOUT
Expressions
Expression Structure
New in 6.0: Core Language
RELATED LINKS
Demonstrations with TreeForm
(
Wolfram Demonstrations Project
)
New in 1 | Last modified in 6