Logical functions takes 1 for true
and 0 for false.
Denotations: a, b – logical values (1 or 0)
|
Function |
Description |
Examples |
|
or(a,b) |
a or b |
Or(0,1)=or(1,0)=or(1,1)=1. or(0,0)=0 |
|
and(a,b) |
a and b |
and(1,1)=1. and(1,0)=and(0,1)=and(0,0)=0 |
|
not(a) |
not a |
not(0)=1 not(1)=0 |