Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Ternary-logic/Mathematica/ternary-logic-1.math
Normal file
2
Task/Ternary-logic/Mathematica/ternary-logic-1.math
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Maybe /: ! Maybe = Maybe;
|
||||
Maybe /: (And | Or | Nand | Nor | Xor | Xnor | Implies | Equivalent)[Maybe, Maybe] = Maybe;
|
||||
9
Task/Ternary-logic/Mathematica/ternary-logic-2.math
Normal file
9
Task/Ternary-logic/Mathematica/ternary-logic-2.math
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
trits = {True, Maybe, False};
|
||||
Print@Grid[
|
||||
ArrayFlatten[{{{{Not}}, {{Null}}}, {List /@ trits,
|
||||
List /@ Not /@ trits}}]];
|
||||
Do[Print@Grid[
|
||||
ArrayFlatten[{{{{operator}}, {{Null, Null,
|
||||
Null}}}, {{{Null}}, {trits}}, {List /@ trits,
|
||||
Outer[operator, trits, trits]}}]], {operator, {And, Or, Nand,
|
||||
Nor, Xor, Xnor, Implies, Equivalent}}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue