simultaneous eqns. on 32sii...anyone?



Post: #2

I've written a 2 equation in 2 vars program in 36 bytes, in the form of Ax+By=C & Dx+Ey=F. Has anyone pulled off a shorter one? I would hope to get it up to 4eqn/4var without having a massive memory brunch.

I'm also searching for any known space saving tricks like performing one operation on several (3 or more) values at once, or more than one operation on one value, for example:

input, sqre, + A,B,C to individually recall, square, and then add the results. (I know this won't work if I enter as is) It currently takes me ten lines to input, perform, and store this in a variable.

In light of the massive storage capacity offered by models like the 48gx/49G/G+ I am really enjoying the experience of managing stuff in limited space. I analog it to learning the value of a dollar, like dad always said.
back to the kbd.
eric


Post: #3

Eric --

Nah, I haven't tried to write an optimal linear-systems solver for the 32Sii. Why do so, if one has other models with the capability built in, as well as Matlab on the workplace PC? Even the 20S has a 3x3 solver, but you'll probably need to consult the manual to run it, and you'll lose any programming and memory contents.

I'd invest the effort in mastering your new-used 15C. On an EE midterm exam in 1991, I was able to solve a three-loop AC ladder network as a set of three simultaneous equations using a 3x3 complex system matrix, and then manipulate the complex-valued solutions in complex mode. The students using calc's without these two built-in features would have had to "collapse the ladder" with laborious manual calculations.

Post: #4

Have a look at these HP32SII links:

Simultaneous Linear Equations in 2 unknowns

Simultaneous Linear Equations in 3 unknowns

Simultaneous Linear Equations, 1 Linear, 1 Quadratic

Anyway, perhaps you should try an HP-15C instead. It can solve linear systems up to 7x7, with no programming necessary, in just a few seconds.

Best regards from V.

Edited: 9 Oct 2003, 10:04 a.m.


Post: #5

Thanks for the links Valentin,

My two equation system solver is shorter (36 byte vs. their 45 byte) BUT! I was very VERY happy to learn a new way to enter values. I noticed that they forgot the last step RTN, as their program doesn't seem to run well without it. Thank you for the links though, I found them useful.
Btw, do you know of other resources for purely 32sii users?
eric


Post: #6

Hi Eric,

I'm not 'purely' 32SII user, but I use day-to-day this machine. I alvays send programs for this machine, and you'll seeing thats on HPMuseum, if Dave will refreshing his pages! ;)

If you want to lettering about this machine, I'm ready! :)

Csaba


Forum Jump: