Post Reply 
(49g 50g) Shoelace algorithm
08-25-2018, 01:58 PM (This post was last modified: 08-25-2018 01:58 PM by John Keith.)
Post: #12
RE: ( HP49/50) Shoelace algorithm
(08-24-2018 05:02 PM)Thomas Klemm Wrote:  Does that mean that we could use this?
Code:
« DUP LRLLD
  SWAP LROLL
  - * ∑LIST 2 /
»

Yes, it not only works, it is the smallest and fastest program. Smile

The complete list, timing in milliseconds for the Cat:
Code:

Your vector version: 446ms  57 bytes
My program above:    164ms 107    "
Your program above:  157ms  76    "
ListExt version:     140ms  41.5  "
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 - John Keith - 08-25-2018 01:58 PM



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