447
edits
(→Gates) Tags: Mobile edit Mobile web edit |
|||
Line 39: | Line 39: | ||
| 1 || 1 || 0 | | 1 || 1 || 0 | ||
|} | |} | ||
XOR is only "true" or 1 when x or y but not both, are 1. Disjunctive normal form says that we can view the x, y entries as unary operators which return the input with no change, combine these as given on the lines which evaluate to 1, and take the OR of all of them for the total connective form of the truth table. Here is the | XOR is only "true" or 1 when x or y but not both, are 1. Disjunctive normal form says that we can view the x, y entries as unary operators which return the input with no change, combine these as given on the lines which evaluate to 1, and take the OR of all of them for the total connective form of the truth table. Here is the third line: <math> x\and\neg y</math>. | ||
<br> The total is: | |||
<math> | |||
\begin{align*} | |||
&(x\and\neg y)\or (\neg x\and y) \\ | |||
=&(x\or(\neg x\and y))\and(\neg y\or(\neg x\and y)) \\ | |||
=&(x\or\neg x)\and (x\or y)\and(\neg y\or\neg x)\and(\neg y\or y) \\ | |||
=&(x\or y)\and (\neg y\or\neg x) \\ | |||
=&(x\or y)\and\neg (y\and x) | |||
\end{align*} | |||
</math> | |||
<br> | |||
This process can be viewed as a sum of "elementary functions" which are only 1 on one line each, and building a general function/table. | |||
= Read prototype = | = Read prototype = |