RPN programming for HP 49G



Would you please teach me how to program and store mathmatical equations into an HP 49G. I want to program them RPN form.

For example, C = (A^2 + B^2)^1/2 where A, B, & C are varibles. I want to store this equation in RPN form, so if C and B are known, the HP 49G can calcuate A.

Thanks in advance,




In this form, I do not think of a way to store it in RPN format. Anyway, you can change it from C = (A^2 + B^2)^1/2 to (A^2 + B^2)^1/2 - C. In this case, one of the solutions (expect many) would be:

Consider C and B already stored in the current directory

             LEVEL1    LEVEL2
« -> A
SQ (x^2) B^2
A A B^2
SQ (x^2) A^2 B^2
+ B^2+A^2
.5 .5 B^2+C^2
^ (y^x) (B^2+A^2)^.5
C C (B^2+A^2)^.5
- (B^2+A^2)^.5 - C
Given A in the stack, this program returns the expression value. If it returns zero, you have a root. To automate the process, it's necessary to use the ROOT command, and you'll need an extra procedure.

Hope it helps. (I did not check this info, I have neither the manuals, nor the calcs in hand now. Maybe there are some errors)

Possibly Related Threads...
Thread Author Replies Views Last Post
  [PRIME] RPN: another attempt at returning more than one value to the RPN stack Marcus von Cube, Germany 5 981 11-05-2013, 02:44 AM
Last Post: Marcus von Cube, Germany
  HHC 2013 RPN Programming Challenge - Final Thought Jeff O. 7 1,026 10-17-2013, 11:02 AM
Last Post: Jeff O.
  HHC / HP Museum Programming Contest for RPN and RPL machines Gene Wright 18 1,953 09-22-2013, 09:39 AM
Last Post: Miguel Toro
  HHC 2012 RPN Programming Contest - 10-Step Way-After-Nashville Solution Jeff O. 32 3,177 10-12-2012, 01:41 AM
Last Post: Paul Dale
  HHC 2012 RPN Programming Challenge Conundrum Jeff O. 15 1,503 10-08-2012, 03:34 PM
Last Post: Gerson W. Barbosa
  HHC 2012 RPN Programming Contest Gene Wright 73 4,672 09-28-2012, 12:43 PM
Last Post: x34
  HHC 2012 programming contests coming soon (RPN and RPL) Gene Wright 9 1,130 09-21-2012, 03:38 PM
Last Post: Paul Dale
  Help with RPN programming hpnut 36 3,133 03-03-2012, 09:31 AM
Last Post: Bill (Smithville, NJ)
  Re: RPN Programming exercise (HP-42S) Gerson W. Barbosa 1 389 02-27-2012, 05:51 PM
Last Post: Marcus von Cube, Germany
  RPN Programming exercise (HP-42S) Gerson W. Barbosa 71 4,340 02-26-2012, 11:48 AM
Last Post: Valentin Albillo

Forum Jump: