TraceAbove
Usage
• TraceAbove是Trace和相关函数的一个选项,指定是否包括计算链,该计算链包括包含搜寻的模式form的计算链。
Notes
• TraceAbove -> True 包括所有的计算链中第一和最后一个表达式,在那儿出现包含form的计算链。 • TraceAbove -> All包括在这些计算链中所有的表达式。 • TraceAbove -> backward, forward 允许在前向和后向分别指定包含的表达式。 • 使用TraceAbove,可以查看在一次计算中出现的匹配 form 的表达式的完全路径。
Further Examples
Here is the recursive definition of the Fibonacci numbers.
In[1]:=
|
Here are the end conditions for the recursion.
In[2]:=
|
Out[2]=
|
This shows all the ways that fib[2] is generated during the evaluation of fib[5].
In[3]:=
|
Out[3]=
|
|