cofactor(a, i, j)

Returns the cofactor of matrix a corresponding to the entry at row i and column j.


See also minor minormatrix 


Example


a = ( 1, 2, 3 ; 4, 5, 6 ; 7, 8, 9 )

1  2  3

4  5  6

7  8  9

cofactor( a, 1, 1 )

-3