IntegerQ
Usage
• 如果expr是一个整数, IntegerQ[expr] 给出True,否则给出False。
Notes
• IntegerQ[expr]返回False,除非expr十分明确的是一个整数 (例如, 有头 Integer). • Simplify[expr Integers] 能用于确定一个表达式在数学上是否等于一个整数。
Further Examples
The rule applies to all elements of the list that are integers.
In[1]:=
|
Out[1]=
|
|