README for mtrxmath Version 1.0.2
Maintained by Jeff Craig
This project is licensed under the GPL (See COPYING file),and is free
to change and distribute as you wish.
Synopsis:
The mtrxmath project is a simple project built for the singular
purpose of performing math with matrices.The code and data structure
have been designed to be capable of anything. The data structure
has been changed by Paul Sack to a dynamic array floating point numbers.
The code is quick and tight, and will be better documented in future
releases.
To install:
Run make to compile
Run make install as root to install it to /usr/local/bin
For help either run mtrxmath with the '-h' option or read the man page
To Use:
To add two matrices type: 'mtrxmath -a' at the command prompt
To subtract two matrices type: 'mtrxmath -s' at the command prompt
To multiply two matrices type: 'mtrxmath -m' at the command prompt
To divide two matrices type: 'mtrxmath -d' at the command prompt
To find the determinant of a matrix type: 'mtrxmath -D'
To find the inverse of a matrix type: 'mtrxmath -i'
After that the three interfaces are identical, and self explanatory
Also, Paul Sack has contributed code to allow for reading from a file.
Here is Paul's Description of it:
The format is the same as that for the input (rows, whitespace,
columns, whitespace, entries, each separated by whitespace).
With the exception that any non-digits are ignored, so users
can put comments in the files.
e.g.
rows: 2
columns: 2
1 2
3 4
is allowed.
To utilize this new feature simply type 'mtrxmath [function] '
IMPORTANT: When subtracting and dividing you must specify the matrices in the
correct order or your results will be incorrect. Also, you can not specify
a file for the second matrix and not the first.