less function
True when the first value is less than the second: the function form of <.
How to write it
less(a, b)
- a
- A value. Takes an expression.
- b
- A value. Takes an expression.
Examples
less(1, 2)In the solver,
Open in the solverless(1, 2)givestrue.
Related functions
- less_equal
True when the first value is at most the second: the function form of <=.
- is_tautology
Test whether a condition is true for every value of its variables.
- logical_and
True when every condition is true: the function form of and.
- is_satisfiable
Test whether a condition is true for some value of its variables.
- logical_expand
Distribute and over or in a logical expression.
- is_odd
Test whether a whole number is odd.