Post Reply 
(12C) Check if two numbers is to the power of other
09-07-2018, 09:28 PM (This post was last modified: 09-07-2018 09:44 PM by rprosperi.)
Post: #12
RE: (12C) Check if two numbers is to the power of other
(09-07-2018 08:49 PM)Dieter Wrote:  OK. Gamo and Bob: please repeat this case (5 and 25) once again and SST through the program until you get to the X≤Y? test in line 17. When this test fails and the next SST continues with the GTO 09 command, press [–] to see the difference between X and Y. Is it zero or something else?

Actually I thought of that earlier and SST-ed through in FIX-9 mode and confirmed both values were 25.00000000, and it appeared to not be a round-off or loss pf precision issue.

BUT, your idea is clearly better as it actually performs the test under question and revealed the truth, the difference is -6.000000 -E13. (on the emulator)

Update 1: Forgot to mention that this difference is indeed 0.00000000 on the real 12CP.

So, I gather the Y^X in step 014 is the suspicious candidate.

Update 2: Doh! Yes, it's trivial to confirm on the emulator

[5] [Enter] [2] [Y^X] [25] [-] => -6.000000 -E13

Thanks Dieter.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (12C) Check if two numbers is to the power of other - rprosperi - 09-07-2018 09:28 PM



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