Just look at the truth table for these and you'll see how to do it.
http://hyperphysics.phy-astr.gsu.edu...onic/nand.html
Private Function NAND(byval a as boolean, byval b as boolean, byval c as
boolean) as boolean
if a=True and b=True and c=True then Return False
Return True
End Function
http://hyperphysics.phy-astr.gsu.edu...ronic/nor.html
Private Function NOR(byval a as boolean, byval b as boolean, byval c as
boolean) as boolean
if a=True or b=True or c=True then Return False
Return True
End Function
http://hyperphysics.phy-astr.gsu.edu...onic/xnor.html
Private Function XNOR(byval a as boolean, byval b as boolean, byval c as
boolean) as boolean
if a=b and a=c then Return True
Return False
End Function
<pa***********@libero.itwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hi,
what is the appropriate way to to
the following operations for three arguments (a,b,c)
(wikipedia has definitions, in case):
NAND, NOR, XNOR ?
Thanks
-P