Question: Consider the matrix 1=(18-20 ) 1 In this problem we will investigate the LU decomposition of A with and without pivoting (i.e., with and without

 Consider the matrix 1=(18-20 ) 1 In this problem we will

Consider the matrix 1=(18-20 ) 1 In this problem we will investigate the LU decomposition of A with and without pivoting (i.e., with and without reordering the rows). First, find the condition number of A using cond and save your answer in a variable named ans 1. You should find that the condition number is not particularly large, which suggests that any reasonable linear system solver should work well with this matrix. It is easy to check by hand that the LU decomposition of A (without reordering the rows) is (1 and U = L = 6020 and U = 10-20 1 0 1 - 1020) Multiply LU by hand and confirm that LU = A. Now use Matlab to multiply LU and save your answer in a variable named ans2. Is this close to A? If we switch the rows of A, we get a new matrix B= 10-20 1 It is easy to check by hand that the LU decomposition of B (without reordering the rows) is 11 0 L= 1 10-20 and U = 01 - 10-20 Multiply LU by hand and confirm that LU = B. Now use Matlab to multiply LU and save your answer in a variable named ans 3. Is this close to B? (Note: This problem is supposed to be very easy. You should just type the matrices L and U directly for each problem. You should not use the lu command for either part. It is, however, worth checking what happens if you use the lu command. What does lu(A) give you? What about lu(B)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!