newRPL - Updated to build 1510 [official build remains at 1487]
|
07-22-2023, 10:55 PM
(This post was last modified: 08-13-2023 12:54 PM by Gilles.)
Post: #289
|
|||
|
|||
RE: newRPL - Updated to build 1510 [official build remains at 1487]
I spent some time tonight starting a ListExt library in newRPL.
For documentation and usage, see : https://www.hpcalc.org/details/7971 by David Mutter. It's a partial implementation for now. It's very fast because newRPL is very fast especially with the processing of lists. The rest will follow soon enough when I have time next week and will be integrated into a newRPL library with menu and on line help. Code: @================================================================ USAGE EXEMPLES : returns the list of numbers from 1 to 1000 not divisible by 7 : Code: 1000 LSEQ « 7 MOD » LFILT List of the 69 numbers <1000 with sum on digits is 11 : Code: 999 LSEQ « I→NL ΣLIST 11 == » LFILT random shuffle from a list Code: 49 LSEQ LSHUF Sum of the 200 first decimals of PI (HP50g : 0.029 sec USB powered / 0.246 sec on battery) Code: GETPREC 202 SETPREC Permute letters of a string Code: { "a" "b" "c" "d" } « ΣLIST » DOPERM List of numbers with all the 1,2,3,4,7 digits witch are primes Code: { 1 2 3 4 7 } « NL→I IF DUP ISPRIME? NOT THEN DROP END » DOPERM |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)