Question: please complete in MATLAB asap, thank you From Sauer computer problems 2.3 (pg 94 in 2E, 101 in 1E): a) For the nn matrix Aij=5/(i+2j1),

 please complete in MATLAB asap, thank you From Sauer computer problems

please complete in MATLAB asap, thank you

From Sauer computer problems 2.3 (pg 94 in 2E, 101 in 1E): a) For the nn matrix Aij=5/(i+2j1), x being a vector of all ones, calculate b=Ax. Use this b and your A to find xc, the double-precision computed solution, using either your Gaussian elimination program or Matlab's backslash operation. Find the infinity norm of the forward error and the error magnification factor of the problem Ax=b (see next page for definitions and details), and compare with the condition number of A. Do this for n=6 and n=10. c) Repeat for Aij=ij+1, for n=100,200,300,400, and 500 . e) For what values of n do the solutions in the above problems have no correct significant digits? The infinity norm of a vector is the largest absolute value of the elements. In Matlab, you can use either norm (x, Inf ) or max(abs(x)) to find the infinity norm of a vector x,x. The forward error is the infinity norm of the difference between the actual solution x and your computed solution xc. The backward error is the error in the constant vector b; we will assume that the relative backward error in the machine epsilon (Sauer uses a different definition for the backward error). The error magnification factor is the ratio of the relative forward error to the relative backward error, so errormagnificationfactor=xxc/x. The error magnification factor tells us how errors in our constant vector b will affect our computed solution xc

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!