Warning: Update in progress. Before adding new content, I'm going through and updating the content that already existed that I haven't touched in years. Also fixing up a lot of CSS. I wrote bad code a very long time ago and it's taking a while to update it.
This page has not been looked at yet My apologies for any issues this may cause.

4.2.3 : And


The AND operator renders true when both statement x and statement y are true. Once again let's consider the weather. It's a good day if, "The sky is blue" AND "It is sunny". Now, if the sky is gray and it's sunny, then it's still not a good day. If the sky is blue and it's not sunny, it's still not a good day. Only if the sky is blue AND it's sunny is it a good day. Once again, we set up our truth table with 00, 01, 10, 11. As you can see, only one case gives us a result of 1, and that's 11.

Notation: xy, x · y , x ∧ y
x y x ∧ y
0 0 0
0 1 0
1 0 0
1 1 1
{ "width":312, "height":108, "showToolbox":false, "devices":[ {"type":"DC","id":"dev0","x":52,"y":36,"label":"DC"}, {"type":"AND","id":"dev1","x":164,"y":36,"label":"AND"}, {"type":"LED","id":"dev2","x":220,"y":36,"label":"LED"}, {"type":"Toggle","id":"dev3","x":108,"y":12,"label":"X"}, {"type":"Toggle","id":"dev4","x":108,"y":60,"label":"Y"} ], "connectors":[ {"from":"dev1.in0","to":"dev3.out0"}, {"from":"dev1.in1","to":"dev4.out0"}, {"from":"dev2.in0","to":"dev1.out0"}, {"from":"dev3.in0","to":"dev0.out0"}, {"from":"dev4.in0","to":"dev0.out0"} ] }

In regular algebra, AND is comparable to multiplication. If you look at the notation, one of them is the dot (·), another is placing the values next to each other. This is a direct correlation to multiplication. Let's consider multiplication by 0. If we multiply anything, including 0, by 0, we get the answer of 0. This is similar to how if anything is False in the equation, we get the answer is False. The only way to avoid a 0 answer, is to multiply two non-zero numbers.

In set theory, the equivalent to AND is the intersection of two sets. The intersection is a set made of elements that are in both A and B. The venn diagram below illustrates it better. The part highlighted in blue is the intersection of sets A and B. It is literally where the two venn diagrams intersect and nothing else. Just like with OR and union, the intersection (∩) and AND (∧) symbols are very similar.


Practice Problems

If y is false and x is true, what is (x ∧ ¬ y)?



Back To Top