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