Matrix access and insertion in RPN
02-23-2017, 04:43 AM (This post was last modified: 02-23-2017 07:04 PM by logicalorbit.)
Post: #1
 logicalorbit Junior Member Posts: 2 Joined: Feb 2017
Matrix access and insertion in RPN
Hello I was wondering how accessing matrices in RPN mode works for the HP Prime. The manual states that given a matrix M to access column n simply input M(n), or for element m_ij M(i, j), however this only works for Textbook/Algebraic mode. Looking at the 50g documentation it states that in RPN mode one should input 'M(n)' (with the quotations), however this does not work either. It appears that one must place the value(s) to be used for the call onto the stack and then either use M(1) for one parameter, M(2) for two parameters (M(0) simply returns the matrix). Is this supposed to be the correct way? If so why is it not clearly documented either in the 50g documentation, which was from what I have read RPN through and through, or HP Prime documentation (though it doesn't bother documenting RPN beyong chapter two)? It should certainly be clarified that the parameter to () in RPN mode is not the matrix access index (or stack index to parameters) but argument count.

tl;dr Is 1 Enter 2 Enter M1(2) Enter the correct way to access the element M_12? Would storing the value 9 to M_12 then be 9 Enter 1 Enter 2 Enter M(2) Enter Sto->?
02-24-2017, 01:09 AM (This post was last modified: 02-24-2017 01:10 AM by Han.)
Post: #2
 Han Senior Member Posts: 1,882 Joined: Dec 2013
RE: Matrix access and insertion in RPN
9 'M0(1,2)' [Shift] [EEX]

Graph 3D | QPI | SolveSys
02-24-2017, 07:08 PM
Post: #3
 logicalorbit Junior Member Posts: 2 Joined: Feb 2017
RE: Matrix access and insertion in RPN
Thank you very much Han for your reply, I had given up on figuring out how to store into matrices using indexes.
02-26-2017, 04:17 PM
Post: #4
 Tim Wessman Senior Member Posts: 2,293 Joined: Dec 2013
RE: Matrix access and insertion in RPN
(02-23-2017 04:43 AM)logicalorbit Wrote:  tl;dr Is 1 Enter 2 Enter M1(2) Enter the correct way to access the element M_12? Would storing the value 9 to M_12 then be 9 Enter 1 Enter 2 Enter M(2) Enter Sto->?

Yes, that should work. Easier to use the more concise and easy to read algebaric object as described by Han though.

TW

Although I work for HP, the views and opinions I post here are my own.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)