Re: HP 50g - question about matrices arrays vectors etc. Message #5 Posted by peacecalc on 14 Nov 2013, 11:30 a.m., in response to message #3 by Sean Freeman
Hello Sean,
the sitiuation is a bit tricky:
matrices and vectors have internaly different types.
the command ->ARRY isn't equivalent to ->V2 or ->V3:
First of all:
->V2/3 only works with reals as arguments
->ARRY works with also with symbolic expression (single quoted: '3*A')
Second: If you want to produce a vector with ->ARRY you have to pass a single number for counting the elements of the vector as last argument to ->ARRY
example:
3.Stack: -3
2.Stack: 1
1.Stack 2
Now proceed ->ARRY you get a 2-dimensional vector [-3 1].
If you use ->ARRY with a list with two elements for the dimension of the matrix as last argument, you get a matrix
example:
3.Stack: -3
2.Stack: 1
1.Stack {1 2}
Now proceed ->ARRY you get a 1x2-Matrix [-3 1 ]. It is displayed with thicker brackets, but it looks very similar.
Greetings
peacecalc
|