/matrixlab

This is a GNU/Linux utility for manipulating and performing matrix operations.

Primary LanguageCGNU General Public License v2.0GPL-2.0

matrixlab

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

USAGE

This is a GNU/Linux utility for manipulating and performing matrix operations. The matrix file containing the input data is thus formatted:

1 2 3
-1 2 3
0 1 3
0 4 5
*
4 0
1 2
-2 3

Execute with the following command: ./matrixlab matrix matrmax_dim

-where matrix is the file containing the matrices -matrmax_dim is the dimension of the largest matrix (3 in the example above)

in the example above run:

./matrixlab matrix 3

Matrix Determinant Calculation

To calculate the determinant format the input file thus:

det
4 -3 0
2 -1 2
1 5 7

CONTRIBUTIONS:

For the next version I'd like to perform also symbolic operation of the kind:

cos x sin x
cos x 5
*
1 0
0 1
=
cos x sin x
cos x 5

and also assigment such as:

A=
1 1
2 1

B=
5 6
7 8

A*B