HP Forums
IDENMAT() Error: Invalid input - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: IDENMAT() Error: Invalid input (/thread-14674.html)

IDENMAT() Error: Invalid input - Fasa Soy - 03-20-2020 06:33 AM

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.

RE: IDENMAT() Error: Invalid input - Armando - 04-12-2020 05:59 AM

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 ()

RE: IDENMAT() Error: Invalid input - roadrunner - 04-13-2020 11:43 AM

You can also use identity(34) instead of the program suggested by Armando.


RE: IDENMAT() Error: Invalid input - DrD - 04-13-2020 04:57 PM

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:

CAS.IDENMAT("33"); ==> {33,33} identity matrix.