This
toolbox contains functions which perform various operations like
- Eigenvalue/Vector operators
- Linear Algebra Operators
- Linear Equation Solvers
- Elementary Matrix Operators
PROGRAM
DESIGN
This project will make use of arrays.It will have a class
matrices which will have various methods which perform various matrices
operations like addition, subtraction, multiplication, finding adjoint,
transpose, inverse , conjugate of a given matrix. There will be methods which
will perform scalar operations like adding , subtracting, multiplying a constant
number to each element of the matrix.
There will be functions which will
generate null matrix, identity matrix, diagonal ,row,column matrices,
etc.
Simultaneous equations can be solved using matrices. Rank and eigen
values /vectors of the matrix could also be calculated.
For example,suppose
the equations entered by the user are
x + y + z = 3, x + 2y + 3z = 4, x + 4y
+ 9z = 6.
Two matrices A and B will be created which will be as follows:-
1 1 1
A = 1 2 3
1 4 9
3
B = 4
6
Another matrix X will be calculated such that X = (inverse)A.B
where X
will be a column matrix whose elements are the values x, y, z.
The output
will be
x = 2 , y = 1 , z = 0
SAMPLE INPUT AND OUTPUT
Suppose the user wants the conjugate of a
given matrix
say, for example the given matrix was
1 2 5
3 -1 4
6 1 8
The Output will be
-12 0 9
-11 -22 11
13 11 -7
TEST CONDITIONS
There will be test conditions such as whether the input is a number or not . In some functions , test conditions will be applied
to check that division by zero does not take place, for example in calculating the inverse of a matrix, the determinant value of the
matrix should not be zero. In matrix multiplication , we have to check whether the no. of columns of the first matrix = no. of rows
of the second matrix and so on