Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just this image below, thanks, what is (A), (B), and (C)? The Matlab source code Homework 5, due October 5 This project studies the numerical

Just this image below, thanks, what is (A), (B), and (C)? The Matlab source code

image text in transcribed

Homework 5, due October 5 This project studies the numerical accuracy of solving Ax -b A family of well-conditioned n n matrices can be generated in the form where |> M = 2 * rand(n) -1 ; for i = 1 : n >> end A linear system with known solution Xtrue -[1,2,... ,nlT and given coefficient matrix A (A- M above, say) can be generated via The system can be solved via The relative error norm can be calculated via. >> norm( x-xtrue, inf ) / norm( xtrue, inf ) and the relative componentwise error via >>max abs (x-xtrue) ./ xtrue)) Error analysis suggests that the accuracy of the computed solution should be bounded by where a factor n is multiplied since the constant in O (Emach) typically depends on the dimension of the problem (a) Forn= 10, 100, 1000, build and solve these problems above. Output n' llx-Xtruelloo/lXtruelloo, maxi|Xi-Xtruol/1Xtruel, and condo (A) n mach , using Matlab's cond (A, inf) function and eps internal variabl> format short e. Greater formatting control is available via the fprintf() function (b) Repeat the experiment above with random matrices, generated via >>Arand(n) (c) A notorious family of ill-conditioned matrices are the so-called "Hilbert matrices" which can be generated via >> H= hilb(n) ; Repeat the experiment above with these matrices for n 5, 10, 15

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

=+ Have they changed the way employers view IP?

Answered: 1 week ago