The Museum of HP Calculators

HP Forum Archive 08

[ Return to Index | Top of Index ]

RPN programming for HP 49G
Message #1 Posted by Mark on 3 Apr 2002, 10:23 p.m.


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,


Re: RPN programming for HP 49G
Message #2 Posted by Vieira, Luiz C. (Brazil) on 4 Apr 2002, 7:03 a.m.,
in response to message #1 by Mark


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 

B             B
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)

[ Return to Index | Top of Index ]

Go back to the main exhibit hall