diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-01-21 03:01:35 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-01-21 03:01:35 +0100 |
| commit | 1462786d4ed7ec98ab6721a8238c5ed41f4bc5b7 (patch) | |
| tree | 6110f1522a97d8e04e23dab10f769c7d93e4dabd /sets.py | |
| parent | derp (diff) | |
| download | sets-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-x | sets.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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): |
