| Applying science to business management |
  
Creating Matrices
Matrices are created by defining hierarchical lists which are
simply lists containing other lists as elements.
The list
A:=[[1,2,3],[4,5,6],[7,8,9]]
is equivalent to the matrix
1 4 7
A = 2 5 8
3 6 9
The list
B:=[1,2,3]
is equivalent to the column vector
1
2
3
And, the list
C:=[[1],[2],[3]]
is equivalent to the row vector
C = 1 2 3
You can add, subtract, multiply, raise to a power, and invert
matrices using the standard arithmetic operators applied to
single values (A+B, A-B, A*B, A^n, A^-1).
Furthermore, you can calculate the determinant of a matrix using
the expression determinant(A) and
you can transpose the rows and columns in a matrix using the
expression trans(A).
Matrices in arithmetic calculations can contain any complex
numbers and units of measure as needed.
|