please help me 3. (18 points) We define an ugly...

70.2K

Verified Solution

Question

Accounting

please help me
image
image
3. (18 points) We define an ugly matriz, U., to be an n x n matrix of the form 1:1 :1:1 . .. 1 (We will see momentarily why such a matrix might be called 'ugly"). (a) The function ugly.m creates an ugly matrix of size n. Try creating some ugly matrices in Matlab and then invert them using the inv command. Based on the results, propose a formula for U . (You do not need to prove that the formula is correct). (b) Give a formula for the condition number of U. in the l-norm, based on your results in part (a). What is the condition number when n = 10? (c) Write a script in Matlab that does the following: Creates the matrix U10 Sets r to be a 10 x 1 vector consisting entirely of ones, then computes b= U11 Creates a vector b that is equal to b, but with the last entry changed to 1.01. Solves the system Ar = b. Compute (by hand) the relative change in b, 16-61/61, and the relative change in I, - /- How many times larger is the second quantity compared to the first? (d) In part (c) you should find that the growth in error, while large, is still less than the condition number found in part (b). Find the choice of vectors and b-b such that the amplification of the error in the 1-norm is exactly equal to the condition number. Verify in Matlab that you observe the expected amplification of the error. Hint: look at the derivation of the condition number in class, in particular, where the two inequalities are introduced. Lab 7 may also be helpful. (e) Bonus: up to 6 extra points Repeat part (d), using the c-norm instead of the 1-norm. To submit: Written answer to parts (a) - (d), code for part (c), written answer to part (e) (optional). function U = ugly(n) c = zeros (n,1); C(1) = 1; r = -ones (1,n); r(1) = 1; U = toeplitz (0,r); end

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students