32Sii 2 var eqn solver not working



#2

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)


#3

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.

#4

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  hp-prime solver and variable name fabrice48 22 8,169 12-10-2013, 03:25 AM
Last Post: fabrice48
  HP Prime Triangle solver BruceH 29 8,433 11-28-2013, 12:03 AM
Last Post: Dale Reed
  HP Prime Save Power Turn Off Not Working Timothy Roche 12 4,104 10-27-2013, 01:41 PM
Last Post: Michael de Estrada
  HP PRIME Home settings var lack Damien 0 991 10-26-2013, 04:25 AM
Last Post: Damien
  Temporary User Mode Key Programs not working in RPN BruceTTT 7 2,653 10-14-2013, 01:46 PM
Last Post: BruceTTT
  Using units in Numeric Solver Harold A Climer 1 1,251 10-13-2013, 10:44 AM
Last Post: Tim Wessman
  Does Prime Have a Multiple Equation Solver? Norman Dziedzic 2 1,349 09-20-2013, 09:43 AM
Last Post: Norman Dziedzic
  Input CAS var on HP Prime Mic 2 1,312 08-22-2013, 02:29 PM
Last Post: Mic
  Just a lazy solver algortihm PGILLET 1 1,048 06-28-2013, 11:47 PM
Last Post: Namir
  [43s] : How the solver will be implemented Miguel Toro 3 1,568 03-14-2013, 06:09 PM
Last Post: Walter B

Forum Jump: