nand function
False when every condition is true.
How to write it
nand(p, q, ...)
- p
- A condition. Takes a condition, true or false.
- q
- A condition. Takes a condition, true or false.
Examples
nand(true, true)In the solver,
Open in the solvernand(true, true)givesfalse.
Related functions
- nor
True when every condition is false.
- logical_or
True when some condition is true: the function form of or.
- satisfiability_count
How many assignments of its variables make a condition true.
- logical_not
The opposite of a condition: the function form of not.
- satisfiability_instances
The assignments of its variables that make a condition true.
- logical_expand
Distribute and over or in a logical expression.