Flawed prime factorization program and unexpected 15C simulator behaviour
|
11-18-2015, 07:06 PM
(This post was last modified: 11-23-2015 09:03 AM by BarryMead.)
Post: #3
|
|||
|
|||
RE: Flawed prime factorization program and unexpected 15C simulator behaviour
(11-18-2015 02:54 PM)Harald Wrote: Reason being that 9876543210 Enter 2 / FRAC returns 4294967296?!? Even though the simulator uses binary floating point arithmetic native to the TCL/TK language, it usually has at least as much or more accuracy than the 10-digit BCD arithmetic used in the original HP-15C. This is a genuine bug in the simulator. After division by 2 FRAC should only return one of two values (zero, or .5) so something is corrupting the behavior of the FRAC function. I noticed that it does not happen on all 10-digit numbers either. I sent an email to Torsten Manz reporting the bug. If he responds with a fix, I will post an update in this forum. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)