1/det ( matrix -- 1/det )
Extra matrix operations

Prev:determinant ( matrix -- determinant )
Next:m*1/det ( matrix -- matrix' )


Vocabulary
math.matrices.extras

Inputs
matrixa square-matrix


Outputs
1/deta number


Word description
Find the inverse (recip) of the determinant of the input matrix.

Notes
This word is intended for use with "flat" (2-dimensional) matrices.
This word assumes that elements of the input matrix are compatible with the following words:
determinant ( matrix -- determinant )

recip ( x -- y )


Errors
non-square-determinant if the input matrix is not a square-matrix.

division-by-zero if the determinant of the input matrix is 0.

Examples
USING: math.matrices.extras prettyprint ; { { 0 10 -12 4 } { -9 6 -11 9 } { -5 -10 0 2 } { -7 -11 10 11 } } 1/det .
-1/9086


Definition