Post Reply 
Easy question about System of equations solver
04-29-2016, 10:04 AM (This post was last modified: 04-29-2016 10:39 AM by DrD.)
Post: #5
RE: Easy question about System of equations solver
(04-29-2016 09:49 AM)PedroML Wrote:  I see, thank you!
As L1 is a list and elements are matrix 1x2, then I need:
L1(1)▶M1
L1(2)▶M2
and I can use M1(1,1), M1(1,2), M2(1,1), M2(1,2)

Is that right?

M1 is a vector in this case, with size(M1) == 2. So elements of the vector are:

M1(1) == -0.29
M1(2) == 0.53

M2(1) == 0.69
M2(2) == -0.13

When:
L1:={[-0.29 0.53], [0.69 -0.13]};
L1(1,2) ==> 0.53 (For example, to reach the second element of the first vector, as a one dimensional array, in a list of vectors).

As a vector, there aren't any rows and columns, its just a one dimensional array. M1(row, col) works for matrices. Lists, vectors, and matrices are a subject that could stand additional clarification in the user references. Lists and vectors have a lot in common. The solve() command is one particular example. For instance, if you try the examples given in the calc Help, some return lists, and others return vectors. The Help detail says the command "Returns a list of the solutions..."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Easy question about System of equations solver - DrD - 04-29-2016 10:04 AM



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