Post Reply 
Looking for userRPL examples
04-22-2014, 04:22 PM (This post was last modified: 04-22-2014 04:30 PM by Claudio L..)
Post: #1
Looking for userRPL examples
Hello,
As newRPL slowly progresses, we are in need of small code examples to use in the docs.
Examples need to be short and straight to the point.
But the idea is that the examples should do something cool or fun at the same time, so the docs are not so hard to swallow.
Does anybody know of a collection of userRPL "gems" anywhere?
Or if each of you share their own favorite code snippets here, we can create a small collection of them.
Here's an example that shows how to do linear interpolation, using only stack commands:
given x0 y0 x1 y1 x, returns y corresponding to the point in the same straight line as (x0,y0) and (x1,y1), that has coordinate x.
Code:

<< 3. PICK - 5. ROLL 4. ROLL - / 3. ROLL 3. PICK - * + >>

I know, it isn't that great but shows the use of PICK and ROLL commands, while doing something meaningful. Then we can rewrite the same example but using local variables to show a different way to do it. This is the kind of examples we are looking for.

Thanks
Find all posts by this user
Quote this message in a reply
04-22-2014, 05:08 PM
Post: #2
RE: Looking for userRPL examples
(04-22-2014 04:22 PM)Claudio L. Wrote:  Does anybody know of a collection of userRPL "gems" anywhere?
One-Minute Marvels
Find all posts by this user
Quote this message in a reply
04-22-2014, 07:54 PM
Post: #3
RE: Looking for userRPL examples
(04-22-2014 05:08 PM)Thomas Klemm Wrote:  One-Minute Marvels

Darn, you beat me to it Thomas. This awesome work from Richard and Wlodek is the universal answer to almost any "I need RPL examples to do..." well almost any reason you need RPL examples, this collection likely has some answers.

To all RPL users: If you aren't familiar with this collection, definitely get it!

I would like to find an analogous collection for the WP-34S, emphasizing 34S-unique (or at least 34S-superior) capabilities. Anyone seen such a thing?

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
04-22-2014, 10:36 PM
Post: #4
RE: Looking for userRPL examples
(04-22-2014 07:54 PM)rprosperi Wrote:  I would like to find an analogous collection for the WP-34S, emphasizing 34S-unique (or at least 34S-superior) capabilities. Anyone seen such a thing?
Time to start a new thread? Smile

Marcus von Cube
Wehrheim, Germany
http://www.mvcsys.de
http://wp34s.sf.net
http://mvcsys.de/doc/basic-compare.html
Find all posts by this user
Quote this message in a reply
04-23-2014, 01:23 PM
Post: #5
RE: Looking for userRPL examples
(04-22-2014 05:08 PM)Thomas Klemm Wrote:  
(04-22-2014 04:22 PM)Claudio L. Wrote:  Does anybody know of a collection of userRPL "gems" anywhere?
One-Minute Marvels

Thanks! That's a great start.
Find all posts by this user
Quote this message in a reply
04-24-2014, 05:12 PM (This post was last modified: 04-24-2014 05:15 PM by Tim Wessman.)
Post: #6
RE: Looking for userRPL examples
For a longer collection of basic up to more complicated stuff, http://www.hpcalc.org/details.php?id=1771 is where I'd go to. I always thought that was the best learn to program userRPL book there was (although the fact that it was what I learned on probably biased me some).

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 




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