Mathematica 9 is now available

MatchLocalNames

Usage

MatchLocalNamesTrace 及其相关函数的可选项, 用来指定是否像 x 一样的符号应该使用形式为x$nnn的局部名称与符号匹配.


Notes

• 缺省设置是 MatchLocalNames -> True.
• 使用缺省设置, Trace[expr, x = rhs] 将显示对名称为x$nnn形式的局部变量的分配.
Trace[expr, x = rhs, MatchLocalNames->False] 只显示对全局符号x的分配.
• 参见Mathematica 全书: 2.5.10节.
Further Examples

This traces assignments to all variables with names of the form x$nnn.

In[1]:=  

Out[1]=

This traces assignments only to the specific global variable x.

In[2]:=  

Out[2]=



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.