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:

    To argue with a man who has renounced the use and authority of reason, and whose philosophy consists in holding humanity in contempt, is like administering medicine to the dead, or endeavoring to convert an atheist by scripture.
    Thomas Paine (1737–1809)

    With our splendid harbour, our beautifully situated city, our vast territories, all our varied and inexhaustible natural wealth, if we don’t convert our colony into a great and prosperous nation, it will be a miracle of error for which we shall have to answer as for a gigantic sin.
    Henry Parkes (1815–1896)

    Envy has blackened every page of his history.... The future, in its justice, will number him among those men whom passions and an excess of activity have condemned to unhappiness, through the gift of genius.
    Eugène Delacroix (1798–1863)

    [T]hat moment of evening when the light and the darkness are so evenly balanced that the constraint of day and the suspense of night neutralize each other, leaving absolute mental liberty. It is then that the plight of being alive becomes attenuated to its least possible dimensions.
    Thomas Hardy (1840–1928)