Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LU factorization
Input the number of rows: 4
Input the number of columns: 4
Input the entries: 2
A =
A =
2 0
A =
2 0 1
A =
2 0 1 2
A =
2 0 1 2
1 0 0 0
A =
2 0 1 2
1 1 0 0
A =
2 0 1 2
1 1 0 0
A =
MATLAB Command Window Page 2
2 0 1 2
1 1 0 2
A =
2 0 1 2
1 1 0 2
2 0 0 0
A =
2 0 1 2
1 1 0 2
2 -1 0 0
A =
2 0 1 2
1 1 0 2
2 -1 3 0
A =
2 0 1 2
1 1 0 2
2 -1 3 1
A =
2 0 1 2
1 1 0 2
2 -1 3 1
3 0 0 0
A =
2 0 1 2
1 1 0 2
MATLAB Command Window Page 3
2 -1 3 1
3 -1 0 0
A =
2 0 1 2
1 1 0 2
2 -1 3 1
3 -1 4 0
A =
2 0 1 2
1 1 0 2
2 -1 3 1
3 -1 4 3
A =
2 0 1 2
1 1 0 2
2 -1 3 1
3 -1 4 3
L =
2.0000 0 0 0
1.0000 1.0000 0 0
2.0000 -1.0000 1.5000 0
3.0000 -1.0000 2.0000 1.0000
U =
LU =
2 0 1 2
1 1 0 2
2 -1 3 1
MATLAB Command Window Page 4
3 -1 4 3
The inverse of L is
X =
The inverse of U is
Y =
So the inverse of A is
C =
A_det =
>>