Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1) Implementation and Accuracy of the LU Factorization

L1=

1 0 0 0

1/3 1 0 0
L1
1/2 1 1 0

1/4 9/10 -3/5 1

L2=

1 0 0 0

L2 1/3 1 0 0

1/2 1 1 0

1/4 9/10 -3/5 1

U1=

1 1/2 1/3 1/4

U1 0 1/2 4/45 1/12

0 0 -1/180 -1/120

0 0 0 1/2800

U2=

U2 1 1/2 1/3 1/4


0 1/2 4/45 1/12

0 0 -1/180 -1/120

0 0 0 1/2800

P1=

1 0 0 0

P1 0 0 1 0

0 1 0 0

0 0 0 1

P2=

1 0 0 0

P2 0 0 1 0

0 1 0 0

0 0 0 1
The MATLAB commands to evaluate the norms:
% Matrix infinite Norms
norm_X = norm(X,Inf);
norm_Y = norm(Y,Inf);
norm_Z = norm(Z,Inf);

norm_X = ||X||∞=
norm_Y =||Y||∞=
norm_Z=||Z||∞=

2. Cost of LU Factorization:

You might also like