Post Reply 
Flawed prime factorization program and unexpected 15C simulator behaviour
11-18-2015, 10:35 PM
Post: #5
RE: Flawed prime factorization program and unexpected 15C simulator behaviour
(11-18-2015 07:06 PM)BarryMead Wrote:  
(11-18-2015 02:54 PM)Harald Wrote:  Reason being that 9876543210 Enter 2 / FRAC returns 4294967296?!?
What is going on here? Am I making a mistake somewhere? Or is this a bug?

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 FRACT should only return one of two values (zero, or .5) so
something is corrupting the behavior of the FRACT 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.

Thanks for confirming the bug and reporting it Barry!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Flawed prime factorization program and unexpected 15C simulator behaviour - Harald - 11-18-2015 10:35 PM



User(s) browsing this thread: 1 Guest(s)