Question: MATLAB Problems: 2) Consider a Vandermonde matrix, A, whose elements are given by Write a script m-file to do parts (a)-(e) below. You will use

MATLAB Problems: 2) Consider a Vandermonde matrix, A, whose elements are given by Write a script m-file to do parts (a)-(e) below. You will use the function norm(x) for the norm (which is the 2-norm), cond(A) for the condition number (which is the 2-norm condition number), and the relatively stable backslash "" command to solve a linear system. Use MATLAB to do all the following computations: a) Letn-10, but use nested loops to generate the matrix, A, for any n. You do not need to use loops for the remaining parts of the problem b) Let the exact solution to some problem, Ax-b , be x = ones(nd). For n-10, use matrix multiplication in MATLAB to find b . Now, compute the solution-of Ax = b using the backslash "command Use your results from part (b) to help compute the following c) Compute the relative backward error. d) Compute an upper bound for the relative forward error if the exact solution were not known. e) Compute the relative forward error. According to our discussion in class, at most how many digits can be trusted in your solution for n-10 if the exact solution were not known
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
