🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1217

Re: logische schakeling

#1217
From: Dr.Ruud
Date: Sun, 10 Jul 2005 14:29
65 lines
2212 bytes
Dr.Ruud:

>   i1 i2 i3 | o
>   -- -- -- + -
>    0  0  0 | 0
>    0  0  1 | 1
>    0  1  0 | 1
>    0  1  1 | 0
>   -- -- -- + -
>    1  0  0 | 1
>    1  0  1 | 0
>    1  1  0 | 0
>    1  1  1 | 0


Met een XOR:

   OR(
       AND( NOT(i1), XOR(x2, x3) )
     , AND( i1, NOR(x2, x3) )
     )

Dus 6 blokken (als je de NOT als blok rekent).


Kan ook nog zo:

   NOR( AND(x1, x2), AND(x2, x3), AND(x1, x3) )

Want het moet niet zo zijn dat er willekeurig twee inputs de waarde 1
hebben.
Dus 4 blokken.


>   i1 i2 i3 | o
>   -- -- -- + -
>    0  0  0 | 0
>    0  0  1 | 0
>    0  1  0 | 0
>    0  1  1 | 1
>   -- -- -- + -
>    1  0  0 | 0
>    1  0  1 | 1
>    1  1  0 | 1
>    1  1  1 | 0

  OR(
      AND( NOT(i1), AND(i2, i3) )
    , AND( i1, XOR(i2, i3) )
    )


Weer 6 blokken.


Kan ook nog zo:

   NOR( NOR(x1, x2), NOR(x2, x3), NOR(x1, x3), AND(x1, x2, x3) )

Want het moet niet zo zijn dat er willekeurig twee inputs de waarde 0
hebben,
maar ze mogen ook niet allemaal 1 zijn. Dus 5 blokken.

-- 
Affijn, Ruud
Technical Details
Message-ID: <darjp6.17k.1@news.isolution.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!transit.news.xs4all.nl!post.news.xs4all.nl!rhinewceros.xs4all.nl!not-for-mail
References: <daqkpn$2vr$1@nl-news.euro.net> <dar3uf.184.1@news.isolution.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,f0fc792faeb069ac
X-Google-Thread: 107324,f0fc792faeb069ac
X-Google-Thread: 10bc2a,f0fc792faeb069ac
X-Google-Attributes: gidfcea4,gid107324,gid10bc2a,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!transit.news.xs4all.nl!post.news.xs4all.nl!rhinewceros.xs4all.nl!not-for-mail
Message-ID: <darjp6.17k.1@news.isolution.nl>
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Newsgroups: be.comp.programming,nl.comp.programmeren,nl.hobby.elektronica
References: <daqkpn$2vr$1@nl-news.euro.net> <dar3uf.184.1@news.isolution.nl>
Subject: Re: logische schakeling
Date: Sun, 10 Jul 2005 16:29:20 +0200
Organization: Chaos rules.
X-Newsreader: WMDIYB
X-Archive-Me: please
Approved: yesterday
X-Face: &CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E;NQet`5fe$;=e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
Lines: 67
NNTP-Posting-Host: 194.109.164.102
X-Trace: 1121007603 dreader29.news.xs4all.nl 14836 194.109.164.102:33885