HP Forums
Storing Matrix "Error: Bad argument type" - 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: Storing Matrix "Error: Bad argument type" (/thread-9470.html)



Storing Matrix "Error: Bad argument type" - MullenJohn - 11-10-2017 07:00 PM

With the HP Prime I have created a 2x2 Matrix with the Math Template Key in Home view.
From the Entry Line STO is press and then the variable name 2B is type.
Then the Enter key is pressed.

I receive the message "Error: Bad argument type".

Please tell me what I am doing incorrectly.

Cheers!


RE: Storing Matrix "Error: Bad argument type" - DrD - 11-10-2017 07:09 PM

Variables must begin with a letter:

B2:=[[1,2],[3,4]]; // 2B is not a valid variable name


RE: Storing Matrix "Error: Bad argument type" - MullenJohn - 11-10-2017 11:51 PM

Thank you for your correction.

Now I have another issue with storing a Matrix into a variable.

With the HP Prime I have created a 3x3 Matrix with the Math Template Key in Home view.
From the Entry Line, STO is press and then the variable name C1 is type.
Then the Enter key is pressed.

I receive the message "Error: Invalid input".

The matrix is
[ 1 -2 3
-1 3 -1
2 -5 5]

Please tell me what I am doing incorrectly.


RE: Storing Matrix "Error: Bad argument type" - Arno K - 11-11-2017 12:08 AM

You must take into account that some named vars in the Prime are used by the system, that is C1 is used in Statistics 2Var and it is a global name which, at least for the time being, cannot be used by you in another way than a list which then is taken from that app and stored there, C1 is a list, no matrix.
Arno


RE: Storing Matrix "Error: Bad argument type" - MullenJohn - 11-11-2017 12:28 AM

Wow - Thanks Arno!

I had no idea.

I will review the Global Names.

Cheers!


RE: Storing Matrix "Error: Bad argument type" - DrD - 11-11-2017 06:09 AM

You should review the variables section in the user guide. Particularly, the "reserved" variables information.


RE: Storing Matrix "Error: Bad argument type" - MullenJohn - 11-11-2017 02:04 PM

Thanks DrD - Will do - Cheers!