equivalent function
True when two conditions are both true or both false.
How to write it
equivalent(p, q)
- p
- A condition. Takes a condition, true or false.
- q
- A condition. Takes a condition, true or false.
Examples
equivalent(true, true)In the solver,
Open in the solverequivalent(true, true)givestrue.
Related functions
- greater
True when the first value is greater than the second: the function form of >.
- equal
True when two values are equal: the function form of ==.
- greater_equal
True when the first value is at least the second: the function form of >=.
- eliminate_quantifiers
An equivalent condition with the quantifiers removed.
- implies
True unless the first condition is true and the second false.
- cylindrical_decomposition
Describe where a condition holds as bounds on each variable in turn.