%
% Example 1 from Sec 3.2
%
A = [1 -4 2; -2 8 -9; -1 7 0]
[L, U, P] = lu(A)
det(L)
det(P)
det(P) * U(1,1) * U(2,2) * U(3,3)
det(A)
%
% Example 2 from Sec 3.2
%
A = [2 -8 6 8; 3 -9 5 10; -3 0 1 -2; 1 -4 0 6]
[L, U, P] = lu(A)
det(L)
det(P)
det(P) * U(1,1) * U(2,2) * U(3,3) * U(4,4)
det(A)
