is_even function
Test whether a whole number is even.
How to write it
is_even(n)
- n
- A whole number. Takes a whole number.
Examples
is_even(4)In the solver,
Open in the solveris_even(4)givestrue.
Related functions
- is_integer
Test whether a value is a whole number.
- implies
True unless the first condition is true and the second false.
- is_number
Test whether a value is a number.
- greater_equal
True when the first value is at least the second: the function form of >=.
- is_numeric
Test whether a value has a numeric value, such as pi.
- greater
True when the first value is greater than the second: the function form of >.