| • Science | • People | • Locations | • Timeline |
In ternary logic, the number symbols have the following meaning:
| x | y | Conjunctive (X Y) | Disjunctive (X Y) | Implication (X → Y) | Equivalence (X ↔ Y) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 |
| 0 | 2 | 2 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 2 | 2 | 1 | 2 | 2 |
| 2 | 0 | 2 | 0 | 1 | 0 |
| 2 | 1 | 2 | 1 | 1 | 2 |
| 2 | 2 | 2 | 2 | 1 | 1 |
All other ternary logic operators can be simulated by the four basic operators NOT, AND, OR and IF...THEN. There are 27 one-variable functions in ternary logic (as compared to 8 in binary logic). These functions can be represented in the following table.
| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | f10 | f11 | f12 | f13 | f14 | f15 | f16 | f17 | f18 | f19 | NOT | f21 | f22 | f23 | f24 | f25 | f26 | f27 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 2 | 2 | 2 | 1 | 1 | 1 | 0 | 0 | 0 | 2 | 2 | 2 | 1 | 1 | 1 | 0 | 0 | 0 | 2 | 2 | 2 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
| 2 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 | 2 | 1 | 0 |
The number of functions for a given number of variables for trinary logic can be calculated by the equation 3^3^v, where v represents the number of variables. This gives us 19,683 two-variable functions in trinary logic (compared with 16 for binary) and 7,625,597,484,987 three-variable functions.
This might look better in tables and the symbols might look better in TeX.
F# Name Diff:012 Inverse Expression 012 buffer