Post Reply 
Collaborative collection of useful userRPL snippets
03-03-2018, 03:12 PM (This post was last modified: 07-08-2021 11:22 AM by pier4r.)
Post: #1
Collaborative collection of useful userRPL snippets
The more I browse this forum or the net for userRPL solutions, the more I think that a library of "generic" programs would help. "generic" between quotes because what is generic may vary from use to user.

I know that ideally there is hpcalc.org, the general software library on this forum, wiki4hp and so on to collect such snippets, but it is also true that I saw this or that snippet always isolated, never a library to collect them in one place.

Hence this thread (that may fail, but it is worth trying). Another point of this thread is to solve problems that sounds generic enough to warrant a solution for this library. I saw some interesting questions posted on the facebook group (unfortunately those messages are hard to backup for the moment) that could be a nice input to assemble quick but effective little programs.

For example for me generic is a little command that computes the median of a list (or a column of a matrix, and so on). Although many people here will be able to write it on the spot, can often happen that someone wants to do something else and does not want to write first all the helper routines, even if they are small.

I already collected a couple of commands by myself, but not much. Those are in the hp calc torrent and I will upload them from time to time to the hpcalc.org and the wiki4hp. The more "doors" through which a person can get to a point, the better.

Now what I want to emphasize is that I see often something mentioned like "oh those are just 3-4 commands, they don't deserve to be in a library". Well in my opinion they do if they may help several users in several programs relieving them to know how to assemble those 3-4 commands. Furthermore those 3-4 commands may require some experience with the RPL library of this or that calculator, so they may be not that easy to replicate. They can be also used as examples of what one can do knowing the RPL library. Or they can be used as pointers for other commands that are similar.

One could pack them in an utility library and then that is, the library is available to everyone, in one place and hopefully indexed by the common search engines. Thus also the commands similar to those in the 1 minute marvels pdf are highly appreciated.

So I put the collected commands here: http://www.wiki4hp.com/doku.php?id=rpl:start
or here (when I cannot access wiki4hp) https://app.assembla.com/spaces/various-...grams.urpl
or here (if assembla closes the free accounts) https://de.osdn.net/users/pier4r/pf/vari...grams.urpl

you can go and edit everything (I did not spent a lot of time to organize them, first come the collection).

If you have any command to suggest, please do. Already a link to the source code is enough. I will report every addition here in the first post.

Changelog

Using wiki comments: http://www.wiki4hp.com/doku.php?id=rpl:s...=revisions

- 2018-03-09. Added weighted and harmonic average of lists, converting examples from the 50g user guide (see page 8-15 and subsequent ones) .
Refactored the order of programs and information. Added the program row vector to column vector, column vector to row vector, list to row vector
- 2018.03.03. Started the attempt to slowly build a library of useful snippets.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Collaborative collection of useful userRPL snippets - pier4r - 03-03-2018 03:12 PM



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