Linggo, Marso 11, 2012


WHAT IS TRUTH TABLE?

     truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus.

OVERVIEW ABOUT THE TRUTH TABLE


     Alright, so now let’s do an example of a truth table that has 2 statements. So the first thing you need to know to plan is that since we have two statements will have 2^n and our  ‘n’ now is 2 based on the number of statements or inputs you have assigned. So we can obtain 4 rows about the given number of statements or inputs. Look to the figure 1 that I have set up:                 

A B 
0 0
0 1
1 0
1 0

figure 1:

     Practically, a truth table is composed of one column for each input variable (for example, A and B), and one final column for all of the possible results of the logical operation that the table is meant to represent. Each row of the truth table therefore contains one possible configuration of the input variables (for instance, A=true B=false), and the result of the operation for those values. So we can still say that the zero's '0' is false and ones's '1' is true in the truth table                                                                                                   

therefore, the new table is like:

A B 
F F
F T
T F
T T

    For example, if we have a simple boolean expression A + B = F. The output in the truth table becomes

A B   A + B   Z
F F        F      F
F T        T      T
T F        T      T
T T        T      T



Walang komento:

Mag-post ng isang Komento