|
About
Projects
CV
Contact
Freode
Boolean Logic
Intro
Primary Operators
Primary Operator Qs
Secondary Operators
Expression Forms
Expression Form Questions
Algebraic Laws
Algabraic Laws Questions
Boolean Logic AppletWeb Security
|
Boolean Logic - Primary OperatorsIn boolean logic, operators perform operations on arguments, returning some boolean value. Unary operators perform an operation on one argument, binary operators perfom an operation on two arguments. All operations in boolean logic can be written with only the primary operators: AND, OR, NOT. NOTNot is the only unary operator in boolean logic. It negates (or swaps) the value of its argument, also known as inverting. Differrent NOT operator notation:
Truth table for the NOT operator:
ANDAND is one of two primary binary operators in boolean logic, the other being OR. Different AND operator notation:
Truth table for the AND operator:
OROR is one of two primary binary operators in boolean logic, the other being AND. The OR operator is true if one or both of its arguments are true. Different OR operator notation:
Truth table for the OR operator:
Operator PrecedenceOperator precedence is the order in which operations are carried out. In boolean logic operator precedence goes: NOT, AND, OR. Here are some examples:
|