Mathematica 9 is now available

TraceOff

Usage

TraceOffTrace和相关函数的一个选项,指定应当关掉的追踪的形式。


Notes

TraceOff的设置给出一个和被计算的表达式比较的模式。如果模式匹配表达式,则在计算期间关掉跟踪。模式也对和计算相关的标记进行计算。
• 可以用TraceOff避免跟踪计算的内部部分。
• 缺省设置TraceOff -> None从来不关跟踪。
TraceOn不在TraceOff中使用。
• 在Trace的执行期间,TraceOnTraceOff的设置可以通过重新设置全局变量$TraceOn$TraceOff修改。
• 参见Mathematica 全书: 2.5.10.
• 同时参见: TraceDepth, TraceOn.
Further Examples

Here is a recursive definition of a factorial function.

In[1]:=  

Here is a rule for a log function.

In[2]:=  

This shows all steps in the evaluation.

In[3]:=  

Out[3]=

This shows only those steps that occur during the evaluation of fac.

In[4]:=  

Out[4]=

This shows only those steps that do not occur during the evaluation of fac.

In[5]:=  

Out[5]=



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.