
Originally Posted by
Student122
Hi,
I'm going to have a 'easy' maths exam (it's meant to be easy, it's not easy for me at all) in which we are expected to write out truth tables...
Can someone please mention the basic rules that I can apply...
Thank you!
A truth table will list some number of arguments and specify the corresponding truth value when a logical operation is performed, for all possible inputs. So, here's a truth table for AND
Code:
p q p AND q
= = =======
F F F
F T F
T F F
T T T
p AND q is only true when both p and q are true (this fits with our normal notion of what "and" means. For example, "I'm hungry and tired" is only true if both "I'm hungry" is true and "I'm tired" is true).
It is possible to take more than two arguments, for example
Code:
p q r (p AND q) OR r
= = = ==============
F F F F
F F T T
F T F F
F T T T
T F F F
T F T T
T T F T
T T T T
If you happen to know binary, it could help with listing out the possible argument combinations. So, for the above,
F F F <--> 0 0 0
F F T <--> 0 0 1
F T F <--> 0 1 0
...
T T T <--> 1 1 1
where I'm using <--> to mean corresponds with.