aboutsummaryrefslogtreecommitdiffstats
path: root/sets.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-01-21 03:01:35 +0100
committerMattias Andrée <maandree@operamail.com>2013-01-21 03:01:35 +0100
commit1462786d4ed7ec98ab6721a8238c5ed41f4bc5b7 (patch)
tree6110f1522a97d8e04e23dab10f769c7d93e4dabd /sets.py
parentderp (diff)
downloadsets-1462786d4ed7ec98ab6721a8238c5ed41f4bc5b7.tar.gz
sets-1462786d4ed7ec98ab6721a8238c5ed41f4bc5b7.tar.bz2
sets-1462786d4ed7ec98ab6721a8238c5ed41f4bc5b7.tar.xz
info: using
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'sets.py')
-rwxr-xr-xsets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sets.py b/sets.py
index d9330a4..89dc61c 100755
--- a/sets.py
+++ b/sets.py
@@ -83,7 +83,7 @@ if sys.argv[1].startswith('-'):
print( ' ^ ⊕ ∆ ⊗ ⊻ Symmetrical difference (parity/xor)')
print( ' & * ∧ ⋀ ∩ ⋂ Intersection (and)')
print( ' | + ∨ ⋁ ∪ ⋃ Union (or)')
- print(' - \\ ↛ Difference (material nonimplication/abjunction)')
+ print(' - − \\ ↛ Difference (material nonimplication/abjunction)')
print( ' 0 ∅ Empty set (false)')
print( ' U Ω Ω 𝓤 Universe (true)')
print()
@@ -210,6 +210,7 @@ formula = formula.replace('∪', '|').replace('⊗', '^').replace('⊻', '^')
formula = formula.replace('⋀', '&').replace('⋁', '|').replace('⋂', '&')
formula = formula.replace('⋃', '|').replace('Ω', 'U').replace('Ω', 'U')
formula = formula.replace('⊕', '^').replace('𝓤', 'U').replace('↛', '-')
+formula = formula.replace('−', '-')
for i in range(0, 10):