Post Reply 
Programming with HP50g
08-29-2015, 08:11 PM (This post was last modified: 08-29-2015 08:49 PM by Allen.)
Post: #24
RE: Programming with HP50g
(08-07-2015 03:19 PM)rprosperi Wrote:  
(08-07-2015 10:05 AM)Gerald H Wrote:  Try this:

http://www.hpcalc.org/hp48/docs/programm...inmarv.zip

Excellent recommendation Gerald, you beat me to it!

There is no better single source of small programs, tips and techniques to learn (and quickly become impressed with the power of) RPL.

EVERY RPL user should review these great "marvels" from time to time.

I love this document! Thank you to the authors: Joe, Richard and Wlodek!!

The bottom of the last page challenges the users to submit a program to calculate \(A^3B-AB^3 \) in 27.5 bytes (7 steps). There are provided three checksums to indicate three possible 27.5 byte approaches.

For the interested reader, #D45Bh and #7FE7h (both on 48g) are checksums for two similar 25 byte solutions with only 6 steps each. (not sure if it's faster than the 27.5 byte solutions, but will at least tie one of them, I think).

A more complex approach (still 25 bytes and 6 steps) #13CAh based on:

\begin{equation} \operatorname{Im} \left( \frac{(A+iB)^4}{4}\right) =A^3B-AB^3 \end{equation}

(colorful proof)

17bii | 32s | 32sii | 41c | 41cv | 41cx | 42s | 48g | 48g+ | 48gx | 50g | 30b

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming with HP50g - tigger - 08-07-2015, 09:53 AM
RE: Programming with HP50g - Gerald H - 08-07-2015, 10:05 AM
RE: Programming with HP50g - rprosperi - 08-07-2015, 03:19 PM
RE: Programming with HP50g - Allen - 08-29-2015 08:11 PM
RE: Programming with HP50g - Allen - 08-30-2015, 02:02 PM
RE: Programming with HP50g - Allen - 08-31-2015, 12:57 AM
RE: Programming with HP50g - BartDB - 08-07-2015, 01:27 PM
RE: Programming with HP50g - tigger - 08-28-2015, 05:38 PM
RE: Programming with HP50g - BartDB - 08-28-2015, 05:48 PM
RE: Programming with HP50g - tigger - 08-31-2015, 09:26 AM
RE: Programming with HP50g - Valfisio - 08-09-2015, 08:56 AM
RE: Programming with HP50g - Jlouis - 08-09-2015, 01:06 PM
RE: Programming with HP50g - Brad Barton - 08-10-2015, 03:43 AM
RE: Programming with HP50g - Tugdual - 08-10-2015, 05:53 AM
RE: Programming with HP50g - Maro - 08-10-2015, 06:03 AM
RE: Programming with HP50g - DavidM - 08-10-2015, 11:21 PM
RE: Programming with HP50g - Gilles - 08-09-2015, 08:17 PM
RE: Programming with HP50g - Gerald H - 08-10-2015, 06:40 AM
RE: Programming with HP50g - Tugdual - 08-10-2015, 07:23 AM
RE: Programming with HP50g - Tugdual - 08-29-2015, 05:31 PM
RE: Programming with HP50g - Brad Barton - 08-11-2015, 02:31 PM
RE: Programming with HP50g - Brad Barton - 08-16-2015, 01:43 AM
RE: Programming with HP50g - tigger - 08-29-2015, 09:33 AM
RE: Programming with HP50g - BartDB - 08-29-2015, 03:56 PM
RE: Programming with HP50g - Gerald H - 08-30-2015, 05:10 AM



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