IDENMAT() Error: Invalid input
|
03-20-2020, 06:33 AM
Post: #1
|
|||
|
|||
IDENMAT() Error: Invalid input
IDENMAT() gives the "Error: Invalid input" error message when the value is 33 or above, for example IDENMAT(33) will give this error, but IDENMAT(32) won't. This is probably a bug and not caused memory constraint because I can generate a 100x100 matrix just fine.
This happens on HP Prime Virtual Calculator and Version A, Build 2.1.14425 (2020 1 16). I was trying to test a whether a given matrix is an identity matrix M1==IDENMAT(rowDim(M1)). I would appreciate if someone can tell me another way that is as easy. |
|||
04-12-2020, 05:59 AM
(This post was last modified: 04-12-2020 05:05 PM by Armando.)
Post: #2
|
|||
|
|||
RE: IDENMAT() Error: Invalid input
you are using it in a program so you could show the code or just enter it in the application
Sorry my bad English I attach a program code that performs the same function create an identity matrix given the number of columns you just need enter MATRI_IDEN () instead of IDENMAT () |
|||
04-13-2020, 11:43 AM
Post: #3
|
|||
|
|||
RE: IDENMAT() Error: Invalid input
You can also use identity(34) instead of the program suggested by Armando.
-road |
|||
04-13-2020, 04:57 PM
Post: #4
|
|||
|
|||
RE: IDENMAT() Error: Invalid input
The [Toolbox] catalog shows this as IDENMAT(n), using upper case, and suggesting that this is a HOME command. However, if you use this command in CAS, it works as the original post intended.
So to get it to work in HOME, (or PPL), you can merely fake it as a CAS command: [HOME] CAS.IDENMAT("33"); ==> {33,33} identity matrix. -Dale- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)