is_odd function
Test whether a whole number is odd.
How to write it
is_odd(n)
- n
- A whole number. Takes a whole number.
Examples
is_odd(3)In the solver,
Open in the solveris_odd(3)givestrue.
Related functions
- is_satisfiable
Test whether a condition is true for some value of its variables.
- is_numeric
Test whether a value has a numeric value, such as pi.
- is_tautology
Test whether a condition is true for every value of its variables.
- is_number
Test whether a value is a number.
- less
True when the first value is less than the second: the function form of <.
- is_integer
Test whether a value is a whole number.