Ternary logic
Ternary logic is a multi-valued logic in which there are three states, thus the ternary numeral system is used to represent ternary logic equations. This article is a work in progress.
Base 3
Compared to Analog
Compared to Base 10 and 2
Compared to Base e
Base 9 and 27
Trits, Tribbles, and Trytes
Basic Ternary Algebra: Unary Functions
Constant Functions
000 clear to 0
111 clear to 1
222 clear to 2
One-to-One Functions
The symbols here need to be TeXified; font face Symbol is unacceptableF# Name Diff:012 Inverse Expression
012 buffer ''' 012 A A
021 swap 1/2 '/\\ 021 ['A ÃÂÃÂA
102 swap 0/1 /\\' 102 ]'A ÃÂÃÂA
120 rotate up /// 201 ]A ÃÂÃÂA
201 rotate down \\\\\\ 120 [A ÃÂÃÂA
210 swap 0/2 \\'/ 210 'A A, or A'
Many-to-One Functions
F# ITE Expression
001 210 \\A ÃÂæA Shift Down
002 220 ]/'A ÃÂÃÂÃÂäA
010 100 \\]A ÃÂæÃÂÃÂA
011 001 \\/A ÃÂæÃÂäA
020 120 ]/['A ÃÂÃÂÃÂäÃÂÃÂA
022 002 [\\'A ÃÂÃÂÃÂæA
100 010 \\'A ÃÂæA
101 101 [/['A ÃÂÃÂÃÂäÃÂÃÂA
110 210 [/'A ÃÂÃÂÃÂäA
112 221 /\\A ÃÂäÃÂæA
121 121 ]\\]A ÃÂÃÂÃÂæÃÂÃÂA
122 012 /A ÃÂäA Shift Up
200 020 ]/A ÃÂÃÂÃÂäA
202 102 [\\]A ÃÂÃÂÃÂæÃÂÃÂA
211 021 ]\\'A ÃÂÃÂÃÂæA
212 112 /['A ÃÂäÃÂÃÂA
220 202 [\\A ÃÂÃÂÃÂæA
221 212 /'A ÃÂäA
Binary Functions
Commutativity
Preference Functions
Tritmasks
Named Functions
Advanced Functions
Unbalanced Arithmetic
Negation: 3's complement
Addition / Subtraction
Balanced Arithmetic
Negation: Inversion
Addition / Subtraction
Unknown-State Logic
NOT: Inversion
AND, XOR, OR, XNOR, NAND
Implementation
Existing Computers
Magnetism
Electromechanical Relays
Rapid Single Flux Quantum
Rectifiers
External Links
See also: Digital circuit