The Museum of HP Calculators

HP Forum Archive 17

 Help!! programming hp 48GMessage #1 Posted by Marco on 17 Mar 2007, 9:16 a.m. hey! I hope someone could help me! I have a set of equations that I would like to solve with a program: A = bd - zd^2 P = b + 2d v(1 + z^2) R = A/P V = 1/n * R^(2/3) *(1/2) Q = A * V I have already done it with the Multiple Equiation Solver, but I'd like to know if there's another way of doing it. This is what I did: << {'A = bd - zd^2' 'P = b + 2d v(1 + z^2)' 'R = A/P' 'V = 1/n * R^(2/3) *(1/2)' 'Q = A * V'} 'EQ' STO MINIT MSOLVR >> And then I created another program to erase the variables that it stored: << {A b d z P R V n S EQ Mpar Q} PURGE >> Please help me, I think this is not the best way to do it!

 Re: Help!! programming hp 48GMessage #2 Posted by Benny on 17 Mar 2007, 2:55 p.m.,in response to message #1 by Marco Hi Marco, This is what I do: I put each formulae in a variable F1, F2, F3, F4. Then I add a description in the variable TITLE and next I complete the sequence of the params in a list and store it in LVARI. Be shure the list is complete. The main program then looks clearly structured: << F1 F2 F3 F4 4 \-> LIST STEQ TITLE LVARI MINIT MITM MSOLVR>> Using STEQ shortens the program. Hope this helps. Kind regards, Benny Vanrutten

 Re: Help!! programming hp 48GMessage #3 Posted by Marco on 17 Mar 2007, 5:20 p.m.,in response to message #2 by Benny Hey Benny thanks for your answer! I have sone doubts in what you told me: how can I add a title in the global variable?, and what does LVARI do? thanks for your answer!, but I have another doubt, When I don't give a lot of values it tells me that it has TOO MANY UNKNOWS, but with the same values that I give it I can solve the problem mannually but it takes some time, I don't know if I can apply in the program an iteration methor or something, what would you suggest me? Thanks!, Marco

 Re: Help!! programming hp 48GMessage #4 Posted by Benny on 18 Mar 2007, 6:43 p.m.,in response to message #3 by Marco Hi Marco, In the variable LVARI you put ALL your parameters in the sequence you like them to appear on the display above the F-keys: e.g. { A b d z P R V ...} In TITLE you put the title you want to appear on top of the display e.g. "MY EQUATIONS" TO MANY UNKNOWNS: that is normaly what you get when you did not define enough variables. Perhaps the program needs startvalues. You can find more in the hp50G users guide on pages 7-10 ... 7-21 (hp50gug.pdf) which you can download from www.hpcalc.org (november 24 2006). If you like to Purge you can call LVARI and issue PURGE. That saves time. The best way is to run the program in a separate directory. KR Benny Vanrutten

 Re: Help!! programming hp 48GMessage #5 Posted by Mike Ingle on 23 Mar 2007, 2:09 p.m.,in response to message #1 by Marco Try my multiple equation solver. Scroll down to multiple equation solver for the HP28C. It works on the 48G too.

Go back to the main exhibit hall