,
det(M) = sum(M[0, i] * det(M.minor[0, i]) * (-1)^i)
minor[0, i] - , , 0 - i - , (-1)*i i - -1.
( ) , . , det , . , 2-:
det(M) = M[0, 0] * M[1, 1] * (+1) + M[0, 1] * M[1, 0] * (-1)
, 1, 0,
-det(M) = M[1, 0] * M[0, 1] * (+1) + M[1, 1] * M[0, 0] * (-1)
- 2x2.
, 3-, N = [[a, b, c], [d, e, f], [g, h, i]],
det(N) = a * det([[e, f], [h, i]]) - b * det([[d, f], [g, i]]) + c * det([[d, e], [g, h]])
, ,
a*e*i + b*f*g + c*d*h - c*e*g - a*f*h - b*d*i
, 2x2.
, 4- X, , det(X) 4- , 3x3; , 6 2x2 . , 3x3 .