Mathematica 9 is now available

OddQ

Usage

• 如果expr是一个奇数,OddQ[expr] 给出True,否则给出False


Notes

OddQ[expr] 返回 False ,除非expr明确是一个奇数(例如有头Integer,并且是奇数)。 • 可以使用 OddQ[x] = True 覆盖OddQ的正则运算,并有效的定义 x 是一个奇数。
• 参见 Mathematica 全书: 2.3.5 and 节 3.1.1.
• 同时参见: IntegerQ, EvenQ, TrueQ.
Further Examples

This command forces the constant int1 to be odd.

In[1]:=  

Out[1]=

In[2]:=  

Out[2]=

In[3]:=  



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.