%
% Example 2 from Sec 3.1
%
A = [1 5 -2; 2 4 -1; 0 -2 0]
A31 = A([1,2],[2,3])
A32 = A([1,2],[1,3])
A33 = A([1,2],[1,2])
C31 = (-1)^(3+1) * det(A31)
C32 = (-1)^(3+2) * det(A32)
C33 = (-1)^(3+3) * det(A33)
A(3,1) * C31 + A(3,2) * C32 + A(3,3) * C33
det(A)
