Operators > Boolean Operators > Example: Boolean Operators
  
Example: Boolean Operators
Evaluating Boolean Expression
Evaluate Boolean expressions by inserting a Boolean expression followed by the evaluation operator.
Click to copy this expression
Click to copy this expression
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.
Click to copy this expression
Click to copy this expression
Use the vectorize operator to evaluate the following Boolean expressions term by term:
NOT—Negation
Click to copy this expression
AND—Conjunction
Click to copy this expression
OR—Disjunction
Click to copy this expression
XOR—Exclusive or
Click to copy this expression
Logical Equivalence
You can show that P ⋁ (Q ∧ R) and (P ⋁ Q) ∧ (P ⋁ R) are logically equivalent.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression