The Museum of HP Calculators

HP Forum Archive 13

[ Return to Index | Top of Index ]

32Sii 2 var eqn solver not working
Message #1 Posted by rbaird1@ihug.com.au on 12 Nov 2003, 12:33 a.m.

Hey guys. Can anyone - maybe Ben - tell me if there is a bug in the 2 var eqn solver program for the 32Sii listed in the software section? (http://www.hpmuseum.org/software/322var.htm)

If I add a LBL A to the start I get the checksum of EA51

The comments on the page with the program say the results will be stored in X and Y, but the program does not contain a STO Y instruction so I assume something is wrong.

Running it with A=1 B=1 C=3 G=2 H=-1 I=3 gives 3.0 for X and (predictably) 0.0 for Y (expected X=2 Y=1)

      
Re: 32Sii 2 var eqn solver not working
Message #2 Posted by Eamonn on 12 Nov 2003, 3:12 a.m.,
in response to message #1 by rbaird1@ihug.com.au

Looks like there is an error in the listing. Line 35 should be "STO Y".

After changing line 35 to "STO Y", the x value is stored in the X location on the stack and also in the x storage register, accessed with RCL X. The y value is stored in the Y location on the stack and also stored in the Y storage register, accessed with RCL Y.

      
Re: 32Sii 2 var eqn solver not working
Message #3 Posted by Ben Salinas on 12 Nov 2003, 7:28 p.m.,
in response to message #1 by rbaird1@ihug.com.au

Yeah, I found a mistake in the version I typed up. That was before I understood almost anything on the 32sii (i was perplexed at how I could store more than 1 program in it at a time since i didnt know about labels, and was amazed a few weeks later when i found teh "if's" (x?y))

Those programs are currently extremely inefficient (I also did not know about teh STO+ and RCL+ and the likes), but the theory is there -ben


[ Return to Index | Top of Index ]

Go back to the main exhibit hall