unequal function
True when two values differ: the function form of !=.
How to write it
unequal(a, b)
- a
- A value. Takes an expression.
- b
- A value. Takes an expression.
Examples
unequal(1, 2)In the solver,
Open in the solverunequal(1, 2)givestrue.
Related functions
- xor
True when an odd number of conditions are true.
- truth_table
The truth table of a condition: a row for each choice of values.
- boolean_minimize
A shortest equivalent form of a condition.
- satisfiability_instances
The assignments of its variables that make a condition true.
- conflicting_rules
Every set of rules that cannot hold together, each a list of the rules it needs; [] when all can hold.
- satisfiability_count
How many assignments of its variables make a condition true.