Operator precedence in Boolean algebra

The question of which boolean operators (AND, OR, NOT, XOR, etc) have precendence has recently come up on the OCC and although the IB typically won’t give an answer (!), there is a general assumption that we will do what Java does, namely:

  1. BRACKETS have highest precedence
  2. NOT
  3. AND, NAND
  4. OR, XOR, NOR
  5. Operators at the same precedence are evaluated left to right.

Test your understanding by drawing logic diagrams for the following:

  1. A AND B OR C
  2. A OR B AND C
  3. A OR B XOR C
  4. NOT A AND B NOR C

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s