Mathematica 9 is now available

AtomQ

Usage

AtomQ[expr] 用来判断一个表达式 expr 是否能分成子表达式,如不能则返回 True ,否则返回 False.


Notes

• 可以在一个循环中使用 AtomQ来判断何时到达表达式树的底部
• 对符号,数,字符串以及其它原始对象, AtomQ[expr] 的返回值是 True .
• 对任何使用诸如Map之类的函数都不能到达子部分的对象, AtomQ[expr] 的返回值是 True
• 参见 Mathematica 全书: 2.3.5节.
• 同时参见: NumberQ, Head, LeafCount, Length.
Further Examples

Integers, complex numbers, strings, and symbols are all atoms; a list is not an atom.

In[1]:=  

Out[1]=



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.