8. (15 pts) The Hilbert matrix Hn (hiji-1 of order n is defined by This matrix i
ID: 3144955 • Letter: 8
Question
8. (15 pts) The Hilbert matrix Hn (hiji-1 of order n is defined by This matrix is nonsingular and has an explicit inverse. However, as n increases, the condi- tion number of Hn increases rapidly. The MATLAB functions hilb(n) and invhilb(n) give Hn and H respectively. Let x (1,1,, 1) and b Hnx. This problem examines the two fundamental principles regarding the quality of the computed solution x* (a) Forn 5, 10, set x using the command ones, multiply H,x, to obtain b, and then solve for x with the MATLAB backslash command. (b) Compute the error e xn x, the residual rn bn Hnx, and their norms o with the command norm. Draw conclusionsExplanation / Answer
H = hilb(5) ; (used to define hilbert matrix of order n)
X = [1, 1, 1, 1, 1] ; (to define matrix X)
b = HX ;
X = H; ( Backslash command is used to solve b = HX)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.