non-binary hardware

David Keppel pardo at june.cs.washington.edu
Tue Sep 13 05:17:01 AEST 1988


>[ discussion of troolean logic ]
>
>   AND    0 1 2        OR    0 1 2    INVERSION
>      =========          =========        =====
>      0 | 0 0 0          0 | 0 1 2        0 | 2
>      1 | 0 1 1          1 | 1 1 2        1 | 1
>      2 | 0 1 2          2 | 2 2 2        2 | 0

Another way to think about this is [-1,0,1]; this might
give the same answers as above, although I can imagine:

   AND   -1 0 1        OR   -1 0 1    INVERSION
      =========          =========        =====
     -1 |-1 0 0         -1 |-1-1 0       -1 | 1
      0 | 0 0 0          0 |-1 0 1        0 | 0
      1 | 0 0 1          1 | 0 1 1        1 |-1


    ;-D on  (Don't flame; I'm being provocative, not correct, today)  Pardo
-- 
		    pardo at cs.washington.edu
    {rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo



More information about the Comp.lang.c mailing list