Path: utzoo!attcan!uunet!lll-winken!lll-tis!mordor!joyce!ames!mailrus!cornell!uw-beaver!uw-june!pardo From: pardo@june.cs.washington.edu (David Keppel) Newsgroups: comp.lang.c Subject: Re: non-binary hardware Message-ID: <5702@june.cs.washington.edu> Date: 12 Sep 88 19:17:01 GMT References: <297@sdti.UUCP> <8000007@modcomp> Reply-To: pardo@uw-june.UUCP (David Keppel) Organization: U of Washington, Computer Science, Seattle Lines: 21 >[ 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@cs.washington.edu {rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo