information:classification, information:extraction, structural:reformatting, quality:corruption
Function Tables

It can be useful to have the output of a truth table expressed as a function of some variable values, instead of just a literal truth or false value. These may be called "function tables" to differentiate them from the more general "truth tables". For example, one value, G {\displaystyle G}, may be used with an XOR gate to conditionally invert another value, X {\displaystyle X}. In other words, when G {\displaystyle G} is false, the output is X {\displaystyle X}, and when G {\displaystyle G} is true, the output is ¬ X {\displaystyle \lnot X}. The function table for this would look like:

Similarly, a 4-to-1 multiplexer with select imputs S 0 {\displaystyle S_{0}} and S 1 {\displaystyle S_{1}}, data inputs A {\displaystyle A}, B {\displaystyle B}, C {\displaystyle C} and D {\displaystyle D}, and output Z {\displaystyle Z} (as displayed in the image) would have this function table: