Balanced Ternary - Convert A Number To Balanced Ternary

Convert A Number To Balanced Ternary

We may convert to balanced ternary with the following formula:


(a_na_{n-1}\cdots a_1a_0.c_1 c_2 c_3\cdots)_b =
\sum_{k=0}^n a_kb^k + \sum_{k=1}^\infty c_kb^{-k}.

The is the original representation in the original numeral system.

The b is the original radix. If we convert a decimal number to balanced ternary, b is 10 in decimal.

The numbers and are the weights of the corresponding digits.

The k is the position away fom the radix point.

The and is the number at the position k.

If we convert a number to balanced ternary, we should use balanced ternary representation of the base b and position k .


Such as:

-25.410=-(1T×1011+1TT×1010+11*101-1) =-(1T×101+1TT+11÷101) =-10T1.11TT =T01T.TT11 1010.12=1T100+1T1+1T-1 =10T+1T+0.1 =101.1

Read more about this topic:  Balanced Ternary

Famous quotes containing the words convert a, convert, number and/or balanced:

    Our institutions have a potent digestion, and may in time convert and assimilate to good all elements thrown in, however originally alien.
    Herman Melville (1819–1891)

    Children and savages use only nouns or names of things, which they convert into verbs, and apply to analogous mental acts.
    Ralph Waldo Emerson (1803–1882)

    Computers are good at swift, accurate computation and at storing great masses of information. The brain, on the other hand, is not as efficient a number cruncher and its memory is often highly fallible; a basic inexactness is built into its design. The brain’s strong point is its flexibility. It is unsurpassed at making shrewd guesses and at grasping the total meaning of information presented to it.
    Jeremy Campbell (b. 1931)

    Much of the ill-tempered railing against women that has characterized the popular writing of the last two years is a half-hearted attempt to find a way back to a more balanced relationship between our biological selves and the world we have built. So women are scolded both for being mothers and for not being mothers, for wanting to eat their cake and have it too, and for not wanting to eat their cake and have it too.
    Margaret Mead (1901–1978)