Question: Using MATLab for this problem, Given a vector x ? R n with elements such that x i + x j 0 for all i

Using MATLab for this problem, Given a vector x ? R n with elements such that xi + xj Using MATLab for this problem, Given a vector x ? R n 0 for all i and j, the Cauchy matrix C(x) is the n-by-n matrix with entries, Cij =1/[xi+xj]

Write a Matlab function which returns the Cauchy matrix for a random input vector x = rand(n,1). This can be achieved in one line with repmat. For n = 4, 8, 12, 16, do the following. Compute the corresponding C(x).

Define zexact = [1, 1, . . . , 1]T = ones(n,1), and then compute b = Czexact. Using Matlabs backslash, numerically solve the equation Cz=b, thereby producing a computed solution zc. In exact arithmetic zc = zexact of course, but in IEEE double precision zc will not equal zexact. The quantity with elements such that xi + xj 0 for all i and is the forward error. Construct a table which, for each n, collects the relative forward error, relative backward error, magnification factor, and (infinity-norm) condition number of C

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!