Logic
Dual
construct the dual of a Boolean expression
Calling Sequence
Parameters
Description
Examples
Dual(b)
b
-
Boolean expression
The Dual command returns the dual of the Boolean expression b, that is, the expression generated by replacing &and with &or, &or with &and, leaving ¬ fixed, and extending to the remaining Boolean operators by their formulas in terms of &and, &or, and ¬.
with(Logic):
Dual(a &and (¬ a) = false);
a∨¬a=true
Dual(a &implies b);
¬b⇒a
Dual((¬ a) &nor b &iff c);
¬a↑b⊻c
See Also
simplex/dual
Download Help Document