Simplest formula for truth tables
Working on a truth table for a 3 way switch. When all three are true the light is on. When any change the light changes between on and off. So when all are true, or when two are false the light is on.
A B C
1 1 1 True
1 1 0 False
1 0 1 False
1 0 0 True
0 1 1 False
0 1 0 True
0 0 1 True
0 0 0 False
I'm not sure how to express the simplest logical formula.
Simplest i have gotten is: A and B and C or (!A and !B) or (!A and !C) or (!B and !C)
|