HP Forums

Full Version: Storing Matrix "Error: Bad argument type"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Variables must begin with a letter:

B2:=[[1,2],[3,4]]; // 2B is not a valid variable name
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.
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
Wow - Thanks Arno!

I had no idea.

I will review the Global Names.

Cheers!
You should review the variables section in the user guide. Particularly, the "reserved" variables information.
Thanks DrD - Will do - Cheers!
Reference URL's