List Commands Library for 50g
|
07-22-2017, 10:49 PM
Post: #48
|
|||
|
|||
RE: List Commands Library for 50g
NL→I
Due to the clear consensus of feedback (100% ) indicating a preference for all pre-radix digits being included in the final integer, NL→I now does exactly that. Especially when used in combination with other commands, it enables you to manipulate numbers in ways which would otherwise require more complicated sequences: Convert 12345 to 11112222333344445555 Code: 12345 I→NL 1111 * NL→I Combine 13579 and 24680 to make 1234567890 Code: 13579 I→NL 24680 I→NL 2 →LIST LCLLT NL→I I'm sure there's much better uses than the above, though. The most common use of the command, however, is still likely to be translating a list of single-digit numbers into an exact integer: Code: { 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 } NL→I => 123456789012345 It also became clear that it wasn't really necessary to have a separate LV→I command, so I simply added a section to NL→I so that any identifiers in the list would be RCL'd before attempting to proceed with building the result. If the identifier doesn't already exist in the current search path and isn't a defined local, NL→I will throw a bad argument error. Another use for DOCOMB Karl-Ludwig Butte recently posted an interesting article discussing the history of the "power set". It appeared to me that there was a close correlation with his demonstration of creating a power set for { 1 2 3 } and the output of the DOCOMB command run with increasing combination choices. I'm not sure if the ordering ends up being exactly the same for larger lists (I haven't tried to input his program to run a comparison), but the following should at least generate the same group of combinations for a given input list: Code: \<< I'll post a follow-up message with the latest version of the library shortly. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)