Post Reply 
HHC 2019 will be in Reno, Nevada, Sept 21-22
09-27-2019, 09:59 PM
Post: #49
RE: HHC 2019 will be in Reno, Nevada, Sept 21-22
(09-27-2019 09:31 PM)David Hayden Wrote:  
(09-27-2019 04:48 PM)jjohnson873 Wrote:  I keyed in David's HHC programming solution into my DM42. OMG! It's blazing fast!
Thanks Jim!
(09-27-2019 04:48 PM)jjohnson873 Wrote:  So I put in loop counters into each of his three loops X, Y & Z. The X-loop took 9 iterations. The Y-loop took 90 iterations and the Z-loop took 538 iterations. All totaled, the program looped 435,780 times in about one second. Viva DM42!
My Prime version indicated 440 iterations in the Z loop, but maybe that was an earlier version.

I think you've computed the total number of loops incorrectly. Since you measured the actual number of times in each loop, you should add them, not multiply.

I'm sure that someone will post a faster/smaller RPN solution, if they haven't already.
So these loops aren't nested inside of each other? I made an assumption they were nested, but should have checked the algorithm. It's still FAST! Thanks, Dave!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HHC 2019 will be in Reno, Nevada, Sept 21-22 - jjohnson873 - 09-27-2019 09:59 PM



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