Inverse matrix of matrix A is a matrix A-1 such that
A*A-1 = I and A-1*A = I
Inverse matrix for matrix A can be calculated as
A-1 = (det(A))-1 * BT
where B is the matrix with elements bij
and
bij is det of complement of element aij of matrix A
Perl has different modules for math functions including for inverse matrix. However sometimes
the needed module is not installed on the web server or it's hard to install because of the firewall
or the function should be included in the distribution code so the user does not need to install.
Thus I created own module which has functions for calculating determinant, inverse matrix.
The links to source code and online inverse matrix calcualtion are provided below under the references.