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, number and/or balanced:

    “The English did not come to America from a mere love of adventure, nor to truck with or convert the savages, nor to hold offices under the crown, as the French to a great extent did, but to live in earnest and with freedom.”
    —Henry David Thoreau (1817–1862)

    “I will not adopt that ungenerous and impolitic custom so common with novel writers, of degrading by their contemptuous censure the very performances, to the number of which they are themselves adding—joining with their greatest enemies in bestowing the harshest epithets on such works, and scarcely ever permitting them to be read by their own heroine, who, if she accidentally take up a novel, is sure to turn over its insipid leaves with disgust.”
    —Jane Austen (1775–1817)

    “... all the cares and anxieties, the trials and disappointments of my whole life, are light, when balanced with my sufferings in childhood and youth from the theological dogmas which I sincerely believed, and the gloom connected with everything associated with the name of religion, the church, the parsonage, the graveyard, and the solemn, tolling bell.”
    —Elizabeth Cady Stanton (1815–1902)