Post Reply 
newRPL - Updated to build 1510 [official build remains at 1487]
08-03-2023, 02:56 PM (This post was last modified: 08-13-2023 09:51 AM by Gilles.)
Post: #295
RE: newRPL - Updated to build 1510 [official build remains at 1487]
I wrote my first library for newRPL. LstX 1.0 (update v 1.01a) is a library that adds powerful list management commands to newRPL. It is an adaptation of David Mutter's excellent ListExt library which runs on HP49-50 in standard RPL. The library uses sub-menu and help (long press on the command). You can get plenty of help from the ListExt documentation to use LstX, but beware there are a few differences (DOCOM / DOPERM/ DOCOPE ).

Version 1.01, with new commands, no use of Flag (I use LIBSTO and LIBRCL instead), and speed improvments :
Library code. Must be on level 1 and ATTACH
(DETACH the lib first for update)

Documentation and examples

It's very fast. For example calculating the frequency of the first 1000 decimals of PI takes... 0.60 sec on my HP50g (0.54 sec with USB connection and... 0 sec with the PC version)

Code:
 « GETPREC 1002 SETPREC
   π →NUM FP 1000 ALOG * I→NL SORT LRPCT
   SWAP SETPREC »

{
  { 0  1   2   3   4  5  6  7   8   9 }
  { 93 116 103 102 93 97 94 95 101 106 }
}


Nota : KSORT is not implemented yet. newRPL crashes when I tried to sort embedded list like { { 2 "A"} {1 "B" } {3 "C"} } wich is correct in stock RPL (the sort is on the first item of sublists)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Navigating through sub-menus - Gilles - 05-13-2023, 11:31 AM
RE: newRPL - Updated to build 1510 [official build remains at 1487] - Gilles - 08-03-2023 02:56 PM
It's a mystery to me... - Klaus - 11-27-2023, 12:24 PM



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