Last active
July 6, 2016 17:23
-
-
Save RikerW/3f496d104c8f5e6af6c93ea8d0b79c3c to your computer and use it in GitHub Desktop.
logical functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'AND': ('∧', (lambda a,b:bool(operator.and_(a,b)))), | |
'OR': ('∨', (lambda a,b:bool(operator.or_(a,b)))), | |
'NOT': ('¬', (lambda a,b:bool(operator.not_(a)))), | |
'NOR': ('↓', (lambda a,b:bool(operator.not_(operator.or_(a,b))))), | |
'XOR': ('↮', (lambda a,b:bool(operator.xor(a,b)))), | |
'XNOR': ('↔', (lambda a,b:bool(operator.not_(operator.xor(a,b))))), | |
'NAND': ('↑', (lambda a,b:bool(operator.not_(operator.and_(a,b)))))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment