2-4-14

Function Calculations

uAbout Logical Operations

A logical operation always produces either 0 or 1 as its result.

The following table shows all of possible results that can be produced by AND and OR operations.

 

Value or Expression A

 

Value or Expression B

 

A AND B

A OR B

 

A G 0

 

B G 0

 

1

1

 

A G 0

 

B = 0

 

0

1

 

A = 0

 

B G 0

 

0

1

 

A = 0

 

B = 0

 

0

0

• The following table shows the results produced by the NOT operation.

 

 

 

 

 

 

 

 

 

 

Value or Expression A

 

NOT A

 

 

 

 

 

A G 0

 

0

 

 

 

 

 

A = 0

 

1

 

 

 

 

2007100201