





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problem set 4 for math 6800, with exercises on function conditioning, stability, and accuracy. Students are required to find the infinitesimal perturbation constant for given functions, determine ill-conditioned values, and generate and solve a linear system using various methods. The document also includes instructions for using matlab.
Typology: Assignments
1 / 9
This page cannot be seen from the preview
Don't miss anything!






Math 6800
Due: Tuesday, 10/12/
A=diag(10.∧(0:-1:-9)); [Q0,R0]=qr(rand(10)); A=Q0AQ0’;
(a) Note that A is symmetric and positive definite. What are the singular values of A? What is κ(A) in the 2-norm? (You should be able to answer this without using matlab.)
(b) Now let’s generate a linear system Ax = b whose solution x we know. Use the commands
x=ones(10,1); b=A*x;
Let us consider various ways to solve this system. First, use matlab’s R=chol(A) to compute the upper triangular matrix R in the Cholesky factorization A = R∗R. Solve for a computed xc using the commands
y=R’\b; xc=R\y;
Compute ‖xc − x‖ and ‖R∗R − A‖ in the 2-norm using matlab and explain your results in terms of conditioning and backward stability. Do you expect the computed R to be accurate, i.e. its relative error to be O(mach)? Explain.
(c) Solve the linear system constructed in part (b) but now using a QR-factorization and matlab’s qr(A) command. Compute ‖xc − x‖ and ‖QR − A‖ and explain your results.