PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Testing Expressions
>
Built-in
Mathematica
Symbol
Putting Constraints on Patterns
Types of Numbers
Integer and Number Theoretic Functions
Tutorials »
|
IntegerQ
EvenQ
TrueQ
Divisible
See Also »
|
Integer Functions
Testing Expressions
More About »
OddQ
OddQ
[
expr
]
gives
True
if
expr
is an odd integer, and
False
otherwise.
MORE INFORMATION
OddQ
[
expr
]
returns
False
unless
expr
is manifestly an odd integer (i.e., has head
Integer
, and is odd).
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Test whether 9 is odd:
In[1]:=
Out[1]=
OddQ
gives
False
for non-numeric expressions:
In[1]:=
Out[1]=
Applications
(1)
Properties & Relations
(2)
Possible Issues
(1)
SEE ALSO
IntegerQ
EvenQ
TrueQ
Divisible
TUTORIALS
Putting Constraints on Patterns
Types of Numbers
Integer and Number Theoretic Functions
MORE ABOUT
Integer Functions
Testing Expressions
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1
© 2008 Wolfram Research, Inc.