greater function
True when the first value is greater than the second: the function form of >.
How to write it
greater(a, b)
- a
- A value. Takes an expression.
- b
- A value. Takes an expression.
Examples
greater(2, 1)In the solver,
Open in the solvergreater(2, 1)givestrue.
Related functions
- greater_equal
True when the first value is at least the second: the function form of >=.
- equivalent
True when two conditions are both true or both false.
- implies
True unless the first condition is true and the second false.
- equal
True when two values are equal: the function form of ==.
- is_even
Test whether a whole number is even.
- eliminate_quantifiers
An equivalent condition with the quantifiers removed.