Order of operations in boolean algebra

by Bipolarity
Tags: algebra, boolean, operations, order
 P: 758 I have a rather technical question in boolean algebra to which I was not able to find an answer. What is the order of operations in boolean algebra? Is it first logical NOT, logical AND, logical OR, and finally logical XOR? Correct me if I am wrong. BiP
 P: 22 The order of Boolean operations from high to low priority is NOT, AND, OR, while expressions inside brackets are always evaluated first. Lecture 1: Introduction to Boolean Algebra, Handout, page 2.
 P: 758 What about XOR? BiP
Mentor
P: 13,606

Order of operations in boolean algebra

Since xor is equivalent as not equals, at least in C-based languages xor (as !=) has precedence over logical and (&&) and logical or (||). However, bitwise and (&) has precedence over bitwise xor (^), which in turn has precedence over bitwise or (|).

In the end, does it really matter? Just use parentheses and there's no doubt.

 Related Discussions General Math 5 Precalculus Mathematics Homework 4 Calculus & Beyond Homework 15 Engineering, Comp Sci, & Technology Homework 1 Introductory Physics Homework 3