The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

WP 34S: a litlle matrix helper to enter and review matrices
Message #1 Posted by Miguel Toro on 8 Oct 2011, 9:09 p.m.

Hi,

Nothing fancy here, just a little routine to help entering and reviewing matrice for the WP 34s, based on the MIO application of the PPC ROM.

Hope you find it useful and please, any comment to improve it, is very very welcome.

Miguel

Edited: 8 Oct 2011, 11:59 p.m. after one or more responses were posted

      
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #2 Posted by Paul Dale on 8 Oct 2011, 9:53 p.m.,
in response to message #1 by Miguel Toro

Marcus wrote a small matrix editor for the 34S. It is in the library directory on subversion at sourceforge.

I've no idea how the two compare -- I've used neither so far :)

- Pauli

      
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #3 Posted by Marcus von Cube, Germany on 9 Oct 2011, 6:19 a.m.,
in response to message #1 by Miguel Toro

Mine ('MED') doesn't allow the sequential input of all elements. You need to navigate there with the arrows, start typing, press R/S, then one of the arrows again to go to the next element. Entering a single element needs either arrow navigation or manually setting I and J as the indexes.

What I don't like with your routine, Miguel, is that you have to press the function key, then enter the matrix descriptor and then R/S. Why not just enter the descriptor and then press the function key?

            
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #4 Posted by Miguel Toro on 9 Oct 2011, 7:12 a.m.,
in response to message #3 by Marcus von Cube, Germany

You are correct. I will make the changes in the routine and the article.

Thank you Marcus.

Done!

Edited: 9 Oct 2011, 7:54 a.m. after one or more responses were posted

                  
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #5 Posted by Paul Dale on 9 Oct 2011, 7:30 a.m.,
in response to message #4 by Miguel Toro

Two editors has to be better than one :-)

- Pauli

                  
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #6 Posted by Marcus von Cube, Germany on 9 Oct 2011, 8:18 a.m.,
in response to message #4 by Miguel Toro

Quote:
Review an individual element of a matrix
BB.RRCC // Matrix descriptor
[C] 
Row number (i)
[ENTER]
Column number (j)
[R/S]
--> Element value in X

Review an individual element of a matrix BB.RRCC // Matrix descriptor [D] Row number (i) [ENTER] Column number (j) [R/S] New element value [R/S]


If you look closely at these two, they are completely identical from the user's point of view. The only difference is that he has to enter a value and press R/S again if he wants to update the cell. So why not just ditch [D] and add a STO operation just after the last STOP in [C]? If the user just wants to see an element he does not enter any new data.

Quote:
014 FIX 00
015 CL[alpha]			// shows the next element indexes
016 [alpha]RC# X
017 [alpha]RC# Y
018 FIX[->]02

This can be replaced by [alpha]IP which appends only the integer part. You need to add a delimiter.
                        
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #7 Posted by Miguel Toro on 9 Oct 2011, 8:55 a.m.,
in response to message #6 by Marcus von Cube, Germany

Great!!!

I will do the changes. Thank you very much Marcus.

Regards,

Miguel

      
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #8 Posted by Miguel Toro on 9 Oct 2011, 11:06 a.m.,
in response to message #1 by Miguel Toro

I made a major overhaul of the routine (Marcus von Cube being the culprit of that :-) ). The routine is simpler for the user and easy on resources for the WP 34s.

Thank you Marcus,

Miguel

Edited: 9 Oct 2011, 11:06 a.m.

            
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #9 Posted by Marcus von Cube, Germany on 9 Oct 2011, 11:19 a.m.,
in response to message #8 by Miguel Toro

Quote:
Registers
R01: Index to acces elements through the matrix
You get in trouble with a matrix starting in R00 or R01.
                  
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #10 Posted by Miguel Toro on 9 Oct 2011, 11:51 a.m.,
in response to message #9 by Marcus von Cube, Germany

Yes,

It intended to begin at R10 so there are some registers left to do other things. I will write a comment, so at least leave R0 and R1 free.

                        
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #11 Posted by fhub on 9 Oct 2011, 12:02 p.m.,
in response to message #10 by Miguel Toro

Quote:
Yes,

It intended to begin at R10 so there are some registers left to do other things. I will write a comment, so at least leave R0 and R1 free.


Why don't you use register I instead of R1? Then you won't have any restrictions where the matrix is located.
                              
Re: WP 34S: a litlle matrix helper to enter and review matrices
Message #12 Posted by Miguel Toro on 9 Oct 2011, 12:20 p.m.,
in response to message #11 by fhub

Mince alors! I always forget about that. Certainly. I will change that.

Thanks,

Miguel

Done!

Edited: 9 Oct 2011, 2:11 p.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall