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
OddQ
TrueQ
Divisible
See Also »
|
Integer Functions
Testing Expressions
More About »
EvenQ
EvenQ
[
expr
]
gives
True
if
expr
is an even integer, and
False
otherwise.
MORE INFORMATION
EvenQ
[
expr
]
returns
False
unless
expr
is manifestly an even integer (i.e., has head
Integer
, and is even).
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Test whether 8 is even:
In[1]:=
Out[1]=
EvenQ
gives
False
for non-numeric expressions:
In[1]:=
Out[1]=
Applications
(1)
Properties & Relations
(3)
Possible Issues
(1)
SEE ALSO
IntegerQ
OddQ
TrueQ
Divisible
TUTORIALS
Putting Constraints on Patterns
Types of Numbers
Integer and Number Theoretic Functions
MORE ABOUT
Integer Functions
Testing Expressions
New in 1
© 2008 Wolfram Research, Inc.