Post Reply 
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
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->?
Find all posts by this user
Quote this message in a reply
02-24-2017, 01:09 AM (This post was last modified: 02-24-2017 01:10 AM by Han.)
Post: #2
RE: Matrix access and insertion in RPN
9 'M0(1,2)' [Shift] [EEX]

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
02-24-2017, 07:08 PM
Post: #3
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.
Find all posts by this user
Quote this message in a reply
02-26-2017, 04:17 PM
Post: #4
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.
Find all posts by this user
Quote this message in a reply
Post Reply 




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