Post Reply 
Storing Matrix "Error: Bad argument type"
11-10-2017, 07:00 PM
Post: #1
Storing Matrix "Error: Bad argument type"
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!
Find all posts by this user
Quote this message in a reply
11-10-2017, 07:09 PM
Post: #2
RE: Storing Matrix "Error: Bad argument type"
Variables must begin with a letter:

B2:=[[1,2],[3,4]]; // 2B is not a valid variable name
Find all posts by this user
Quote this message in a reply
11-10-2017, 11:51 PM
Post: #3
RE: Storing Matrix "Error: Bad argument type"
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.
Find all posts by this user
Quote this message in a reply
11-11-2017, 12:08 AM
Post: #4
RE: Storing Matrix "Error: Bad argument type"
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
Find all posts by this user
Quote this message in a reply
11-11-2017, 12:28 AM
Post: #5
RE: Storing Matrix "Error: Bad argument type"
Wow - Thanks Arno!

I had no idea.

I will review the Global Names.

Cheers!
Find all posts by this user
Quote this message in a reply
11-11-2017, 06:09 AM
Post: #6
RE: Storing Matrix "Error: Bad argument type"
You should review the variables section in the user guide. Particularly, the "reserved" variables information.
Find all posts by this user
Quote this message in a reply
11-11-2017, 02:04 PM
Post: #7
RE: Storing Matrix "Error: Bad argument type"
Thanks DrD - Will do - Cheers!
Find all posts by this user
Quote this message in a reply
Post Reply 




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