1. Standard memberforkedknight
    Defend the Universe
    127.0.0.1
    Joined
    18 Dec '03
    Moves
    16687
    28 May '08 19:241 edit
    Originally posted by FabianFnas
    Can it hold any real number exactly?
    What kind of calculator do you have?
    I bet it can hold lots of real numbers with exact precision -- all the real numbers that are also integers 😉

    *edit* (and less than the maximum size of an integer...)
  2. Joined
    11 Nov '05
    Moves
    43938
    28 May '08 20:12
    Originally posted by forkedknight
    I bet it can hold lots of real numbers with exact precision -- all the real numbers that are also integers 😉

    *edit* (and less than the maximum size of an integer...)
    Lots but not all...
  3. Subscribersonhouse
    Fast and Curious
    slatington, pa, usa
    Joined
    28 Dec '04
    Moves
    53223
    29 May '08 03:25
    Originally posted by FabianFnas
    As computers are using binary memories, 1/3 can't be expressed exactly.
    However, a computer with trinary memories (where a bit can store one out of three states), 1/3 is perfectly possible to store (as 1/3 is 0.1 trinary).
    But this trinary computer can't prove the (1/2)*2=1 identity as 1/2 cannot be exactly represented in trinary memories.
    Well you can borrow my Hexiry computer, it has 6 states, so it can hold both 1/3 and 1/2 exactly at the same time. Its a Hewlett Packardd X10000ZEL upgrade with the Hexiry CPU, it also has 10 terabytes of 6 port ram operating at one picosecond access time so its pretty fast too.....
  4. Standard memberforkedknight
    Defend the Universe
    127.0.0.1
    Joined
    18 Dec '03
    Moves
    16687
    29 May '08 05:281 edit
    Originally posted by sonhouse
    Well you can borrow my Hexiry computer, it has 6 states, so it can hold both 1/3 and 1/2 exactly at the same time. Its a Hewlett Packardd X10000ZEL upgrade with the Hexiry CPU, it also has 10 terabytes of 6 port ram operating at one picosecond access time so its pretty fast too.....
    except that all commercial CPU's operate in binary at the lowest level of abstraction. it's possible to represent ternary or hexary states in binary, just like it's possible to represent decimal.

    as said before, you can represent all rational numbers as a numerator and denominator using integers.

    If you want to do something like pi * 1/pi, it's quite easy to represent pi as a symbol (just like I did here), and program the computer to cancel the pi in the numerator with the pi in the denominator.

    In fact you can represent any distinct real number as a symbol and use it with exact precision, just so long as your result has the same symbol or it cancels in some way.

    It's when you start doing things more complicated than algebra, or if you try to represent your real number in decimal/binary/ternary/whatever that you start to run into problems with precision.
  5. Joined
    11 Nov '05
    Moves
    43938
    29 May '08 10:08
    Originally posted by forkedknight
    If you want to do something like pi * 1/pi, it's quite easy to represent pi as a symbol (just like I did here), and program the computer to cancel the pi in the numerator with the pi in the denominator.
    In this kind of calculation, the true value of pi isn't important. pi can be whatever (except zero) and the calculation is valid anyway. So if you define pi to be =1 (exactly) noone will know the difference.
  6. Standard memberforkedknight
    Defend the Universe
    127.0.0.1
    Joined
    18 Dec '03
    Moves
    16687
    29 May '08 17:251 edit
    Originally posted by FabianFnas
    In this kind of calculation, the true value of pi isn't important. pi can be whatever (except zero) and the calculation is valid anyway. So if you define pi to be =1 (exactly) noone will know the difference.
    My point is that it's not an issue with _representing_ a given value in a computer that is the problem.

    Any possible value (or object, or idea -- that's the beauty of computers) can be representing using binary states. The problem is _converting_ that value into a different unit of measurement (or whatever unit has been used to represent a different value).

    It's in the conversion of units that precision is lost
  7. Sigulda, Latvia
    Joined
    30 Aug '06
    Moves
    4048
    29 May '08 18:50
    So, who can prove the identity?
  8. Standard memberforkedknight
    Defend the Universe
    127.0.0.1
    Joined
    18 Dec '03
    Moves
    16687
    29 May '08 21:01
    You need the same basic method as used here:

    http://www.redhotpawn.com/board/showthread.php?threadid=66560
  9. Sigulda, Latvia
    Joined
    30 Aug '06
    Moves
    4048
    30 May '08 10:21
    A user asked me not to post a solution because he's working on it, so I'll ask others to also be so kind to not post the solution, but instead, PM it to me.
Back to Top

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.I Agree