1 / 2

The 3-Way Light Switch and The If-And-Only-If Statement

The 3-Way Light Switch and The If-And-Only-If Statement. In a 3-way light switch, the light goes on if both switches are in the up position or if both switches are in the down position. If one switch is up and one is down, the light is off.

art
Télécharger la présentation

The 3-Way Light Switch and The If-And-Only-If Statement

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The 3-Way Light Switch and The If-And-Only-If Statement In a 3-way light switch, the light goes on if both switches are in the up position or if both switches are in the down position. If one switch is up and one is down, the light is off. In a P If-and-only-if Q statement, the entire statement is true if both parts P & Q are true. The entire statement is also true if both parts P & Q are false. The entire statement is false if one part is true while the other part is false. Thus, the 3-way switch is analogous to the if-and-only-if statement. Is this mathematical knowledge helpful to one actually wiring a 3-way switch?

  2. ANSWER: Yes, it is helpful to know the math! The diagram below shows the clear analogy. For More Info, See How I Used Math To Wire a Switch!

More Related