type/even - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/evenodd

type/even

check for an even integer

type/odd

check for an odd integer

 Calling Sequence type(x, even) type(x, odd)

Parameters

 x - integer

Description

 • These procedures test whether x is an integer divisible by 2.

Examples

 > $\mathrm{type}\left(100,\mathrm{even}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(100,\mathrm{odd}\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{type}\left({x}^{2},\mathrm{even}\right)$
 ${\mathrm{false}}$ (3)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam