Post Reply 
OEIS featured in The New York Times
07-26-2024, 11:57 AM
Post: #16
RE: OEIS featured in The New York Times
(07-25-2024 11:59 PM)Gil Wrote:  By the way, it seems on HP50G/EMU48 that putting the condition/result before the IF THEN END is faster ...

Testing on my physical 50g and EMU48, the difference is slight, less than 0.5%. However,

Code:
\<<
  \<< 1. 100000.
    START 1.
      IF
      THEN
      END
    NEXT
  \>> TEVAL
\>>

using approximate numbers, is 8 times as fast. Of course, not all programs can use approximate numbers but if the numbers are < 10^12 and exact integers are not required, the time savings can be significant. By the way, the decimal points following integers do not cause problems with the HP-48, they are simply ignored.

Finally, apologies to Valentin for derailing his thread on the OEIS (of which I am a huge fan) with discussions of his least favorite programming language. Big Grin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OEIS featured in The New York Times - John Keith - 07-26-2024 11:57 AM



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