views:

366

answers:

5

Is nor:

!(a or b)
!a or !b
!(a and b)

something else?

+12  A: 

!(a or b)

see http://en.wikipedia.org/wiki/Logical_NOR for more

MartinodF
+4  A: 

your first alternative: !(a or b)

which happens to be equivalent to !a and !b

TokenMacGuy
+8  A: 

!(a or b)

Brian Campbell
+1 for linking to documentation
mdec
+6  A: 

NOR(a, b) is defined to be NOT(OR(a, b)) which is !(a or b) in infix notation. By De Morgan's Laws, this is also equivalent to (!a) and (!b).

Adam Rosenfield
+4  A: 

((a NAND a) NAND (b NAND b)) NAND ((a NAND a) NAND (b NAND b)) if you want to be circuit fabrication friendly. :)

chaos