Truth tables are a means of representing the results of a logic function using a table. They are constructed by defining all possible combinations of the inputs to a function, and then calculating the output for each combination in turn. For the three functions we have just defined, the truth tables are as follows.
 


AND


X
Y
F(X,Y)
0
0
0
0
1
0
1
0
0
1
1
1
   
space.gif


OR


X
Y
F(X,Y)
0
0
0
0
1
1
1
0
1
1
1
1
   
space.gif


NOT


X
F(X)
0
1
1
0
   
space.gif


Truth tables may contain as many input variables as desired
   
space.gif


F(X,Y,Z) = X.Y + Z


X
Y
Z
F(X,Y,Z)
0
0
0
0
0
0
1
1
0
1
0
0
0
1
1
1
1
0
0
0
1
0
1
1
1
1
0
1
1
1
1
1

Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates