此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

ExpressionTreePlot

ExpressionTree[e]
plots the expression tree of e.
ExpressionTreePlot[e, pos]
plots the expression tree of e with its root placed at position pos.
ExpressionTreePlot[e, pos, lev]
plots the expression tree of e up to level lev with its root placed at position pos.
  • ExpressionTreePlot has the same options as TreePlot.
Needs["GraphUtilities`"]
An expression tree plot, with tooltips for each vertex giving the subexpression from that vertex down:
In[2]:=
Click for copyable input
Out[2]=
An expression tree up to level 2 with its root at the left:
In[3]:=
Click for copyable input
Out[3]=