Post Reply 
(49g 50g) Shoelace algorithm
08-24-2018, 05:02 PM
Post: #9
RE: ( HP49/50) Shoelace algorithm
(08-24-2018 02:08 PM)John Keith Wrote:  The ListExt Library command LRLLD is the equivalent of DUP TAIL SWAP HEAD + but ListExt is HP49/50 only.

Does that mean that we could use this?
Code:
« DUP LRLLD
  SWAP LROLL
  - * ∑LIST 2 /
»

Quote:HEAD is very slow and I try to avoid it whenever possible.

Do we know the reason? With a linked list HEAD and TAIL are usually fast.

Quote:Though much longer, 1. DUP SUB EVAL is about three times as fast as HEAD!

What about 1. GET?

Kind regards
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(49g 50g) Shoelace algorithm - John Keith - 08-23-2018, 02:20 PM
RE: ( HP49/50) Shoelace algorithm - Thomas Klemm - 08-24-2018 05:02 PM



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