Mathematica 9 is now available

NameQ

Usage

NameQ["string"]用来判断是否存在一个名称与所给定的字符串模式匹配的符号,如果存在则返回True,否则返回False.


Notes

• 你可以使用带有 A.3.13节所指定诸如*的通配符的字符串模式来检测符号名称的类.
• 参见Mathematica 全书: 2.6.12节.
• 同时参见: Names.
Further Examples

Since Factor is a built-in function, NameQ returns a value of True.

In[1]:=  

Out[1]=

There is no symbol named factor.

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.