Question: ( 3 ) Let P = [ 2 - 2 6 , 1 3 1 , 4 0 2 ] ( a ) ( 8
Let P
a points Find an LU decomposition of P ie find lower and upper triangular matrices L and U such that LU P Find this solution by hand in this part!
b points Recompute the LU decomposition of P using appropriate commands in MATLAB. Include your code and the results in your answer. Are both the lower L and upper U triangular factorisations returned by MATLAB triangular as expected? Comment on what you find!
c points Discuss the cost of computation of an LU decomposition and its subsequent use in solving a system of linear equations Ax b A and b known, solve for x Computing the LU decomposition is typically quite a bit of work, under what conditions might we expect it to be faster less computationally costly than an alternative solution such as AAx Ix Ab
d points Write a MATLAB routine to compute and plot the difference in time it takes to solve a system of linear equations where the transformation and result matrices are large, ie of dimension in dimension. Submit your code, plots and comment on any issues you encountered doing this were there any problems memory usage for instance how did you solve these?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
