Example: Boolean Operators
Evaluating Boolean Expression
Evaluate Boolean expressions by inserting a Boolean expression followed by the evaluation operator.
The Boolean equal to operator is different from the evaluation operator. When evaluating a Boolean expression, 1 denotes "true" and 0 denotes "false."
Logical Operators
Define two vectors.
Use the vectorize operator to evaluate the following Boolean expressions term by term:
NOT—Negation | |
AND—Conjunction | |
OR—Disjunction | |
XOR—Exclusive or | |
Logical Equivalence
You can show that P ⋁ (Q ∧ R) and (P ⋁ Q) ∧ (P ⋁ R) are logically equivalent.