Addition, Subtraction and Multiplication and Division
As in binary, there are balanced ternary equivalents of shift and add multiplication, and shift and multiply exponentiation algorithms.
The single-trit addition, subtraction, multiplication and division tables are shown below. For subtraction and division, which are not commutative, the first operand is given to the left of the table, while the second is given at the top. For instance, the answer to 1-T=1T is found in the bottom left corner of the subtraction table.
|
Addition
+ |
T |
0 |
1 |
T |
T1 |
T |
0 |
0 |
T |
0 |
1 |
1 |
0 |
1 |
1T |
|
Subtraction
− |
T |
0 |
1 |
T |
0 |
T |
T1 |
0 |
1 |
0 |
T |
1 |
1T |
1 |
0 |
|
Multiplication
× |
T |
0 |
1 |
T |
1 |
0 |
T |
0 |
0 |
0 |
0 |
1 |
T |
0 |
1 |
|
Division
÷ |
T |
0 |
1 |
T |
1 |
−∞ |
T |
0 |
0 |
|
0 |
1 |
T |
+∞ |
1 |
|
Addition
+ |
- |
0 |
+ |
- |
-+ |
- |
0 |
0 |
- |
0 |
+ |
+ |
0 |
+ |
+- |
|
Subtraction
− |
- |
0 |
+ |
- |
0 |
- |
-+ |
0 |
+ |
0 |
- |
+ |
+- |
+ |
0 |
|
Multiplication
× |
- |
0 |
+ |
- |
+ |
0 |
- |
0 |
0 |
0 |
0 |
+ |
- |
0 |
+ |
|
Division
÷ |
- |
0 |
+ |
- |
+ |
|
- |
0 |
0 |
|
0 |
+ |
- |
|
+ |
|
|