Logic
Complement
construct the complement of a Boolean expression
Calling Sequence
Parameters
Description
Examples
Compatibility
Complement(b)
b
-
Boolean expression
Complement returns the complement of a Boolean expression, that is, the expression generated by replacing &and with &or, &or with &and, negating all variable instances, and extending to the remaining Boolean operators by their formulas in terms of &and, &or, and ¬.
For an input b, the resulting expression will be equivalent to not b in truth value.
with⁡Logic:
Complement⁡a&and¬⁡a=false
¬a∨a=true
Complement⁡a&impliesb
¬¬b⇒¬a
Complement⁡¬⁡a&norb&iffc
a↑¬b⊻¬c
The Logic[Complement] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Logic[Dual]
Download Help Document