Order of Operations

  1. ~ (Not)
  2. and are coequal in order of operation (for CS1231S)
  3. and are coequal in order of operation

Examples

is unambiguous is ambiguous

Not (Negation)

Symbol

~ (also )

Truth Table

p~p
TF
FT

And (Conjuction)

Symbol

Truth Table

pqp q
TTT
TFF
FTF
FFF

Or (Disjunction)

Symbol

Truth Table

pqp q
TTT
TFT
FTT
FFF

Xor

Symbol

(Not used for CS1231S)

Truth Table

TTTTFF
TFTFTT
FTTFTT
FFFFTF

Implies (Logical Conditional Statements)

Symbol

Truth Table

TTT
TFF
FTT
FFT

If and Only If (Logical Biconditional Statements)

Symbol

Truth Table

TTT
TFF
FTF
FFT