Mathematica 9 is now available

TraceOriginal

Usage

TraceOriginalTrace和相关函数的一个选项,指定是否在计算它的头和参数前测试每个表达式的形式。


Notes

• 在缺省设置TraceOriginal -> False,在计算期间产生的表达式的形式仅在它们的头和参数被计算后进行测试。此外,并不包括在计算中不改变的表达式的计算链。
• 在 TraceOriginal -> True, 包括在头和参数被测试前的形式和在计算中并不改变的表达式的计算链。
• 参见Mathematica 全书: 2.5.10.
Further Examples

Here is a recursive definition of a factorial function.

In[1]:=  

This includes expressions which match fac[_] both before and after argument evaluation.

In[2]:=  

Out[2]=

In this case, Trace includes absolutely all expressions, even those with trivial evaluation chains.

In[3]:=  

Out[3]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.