Balanced Ternary - Fractional Balanced Ternary

Fractional Balanced Ternary

Balanced ternary can be extended to fractional numbers similarly to how decimal numbers are written past the decimal point. For instance, is 0.1 and is 1.T.

Donald Knuth has pointed out that truncation and rounding are the same operation in balanced ternary — they produce exactly the same result(a property shared with other balanced numeral system). 0.510 is not an exception too. the 0.510 represented by the repeating fraction 0.1(round to 0, and truncate to 0) and 1.T(round to 1, and truncate to 1).

Unlike in standard base notation, where integer values and terminating fractions have multiple representations (e.g. in decimal, = 0.2510 = 0.24910), in balanced ternary such numbers have only one representation ( = 0.1T3(bal)). On the other hand, numbers half of a terminating fraction (i.e. whose denominator is 2 times a power of 3) do have multiple representations e.g. = 0.013(bal) = 0.1T3(bal).

The basic operations—addition, subtraction, multiplication, and division—are done as in regular ternary, except that there are some special considerations on the size compare. Multiply 2 by 10 in ternary and then divide the result by 2 to see the issue. The intermediate results are the same (in reverse order) in the two cases, and so you can use one as a check on the other.

Digit shifts multiply or divide by three instead of by two as in binary.

Multiplication by two can be done by adding a number to itself. Division by two can be done with the same operation count as an add by LeRoy Eide's algorithm (an algorithm that returns the result least significant digit first, instead of most significant digit first as standard division).

Read more about this topic:  Balanced Ternary

Famous quotes containing the words fractional and/or balanced:

    Hummingbird
    stay for a fractional sharp
    sweetness, and’s gone, can’t take
    more than that.
    Denise Levertov (b. 1923)

    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)