RPN programming for HP 49G « Next Oldest | Next Newest »

 ▼ Mark Junior Member Posts: 47 Threads: 22 Joined: Dec 2011 04-03-2002, 10:23 PM Hi, 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, Mark ▼ Vieira, Luiz C. (Brazil) Posting Freak Posts: 4,027 Threads: 172 Joined: Aug 2005 04-04-2002, 07:03 AM Hi; 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)

 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 660 11-05-2013, 02:44 AM Last Post: Marcus von Cube, Germany HHC 2013 RPN Programming Challenge - Final Thought Jeff O. 7 649 10-17-2013, 11:02 AM Last Post: Jeff O. HHC / HP Museum Programming Contest for RPN and RPL machines Gene Wright 18 1,355 09-22-2013, 09:39 AM Last Post: Miguel Toro HHC 2012 RPN Programming Contest - 10-Step Way-After-Nashville Solution Jeff O. 32 2,135 10-12-2012, 01:41 AM Last Post: Paul Dale HHC 2012 RPN Programming Challenge Conundrum Jeff O. 15 971 10-08-2012, 03:34 PM Last Post: Gerson W. Barbosa HHC 2012 RPN Programming Contest Gene Wright 73 2,831 09-28-2012, 12:43 PM Last Post: x34 HHC 2012 programming contests coming soon (RPN and RPL) Gene Wright 9 766 09-21-2012, 03:38 PM Last Post: Paul Dale Help with RPN programming hpnut 36 2,062 03-03-2012, 09:31 AM Last Post: Bill (Smithville, NJ) Re: RPN Programming exercise (HP-42S) Gerson W. Barbosa 1 234 02-27-2012, 05:51 PM Last Post: Marcus von Cube, Germany RPN Programming exercise (HP-42S) Gerson W. Barbosa 71 2,781 02-26-2012, 11:48 AM Last Post: Valentin Albillo

Forum Jump: