
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

MATH 571 Numerical Methods for Scientific Computing I Winter 2006 hw2 , due: Wednesday, February 8 page 30 (singular value decomposition) 4.1 , 4.
. Find ||A||p for p = 1 , 2 , ∞.
a) Use Matlab’s command svd to find the SVD of A. State U, Σ, V (4-digit format is fine). b) In one plot draw the unit circle C and indicate the vectors v 1 , v 2 , and in another plot draw the ellipse AC (i.e. the image of the circle under the map x → Ax) and indicate the vectors Av 1 = σ 1 u 1 , Av 2 = σ 2 u 2. Use the axis(’square’) command in Matlab to ensure that the horizontal and vertical axes have the same scale. c) Find A 1 , the best rank-1 approximation to A in the 2-norm. Find ||A − A 1 || 2.
h^2 12 ci
ui + ciui =
h^2 12
fi. Use meshsize h = 1 / 2 p, where p is a positive integer. Solve the linear system using the tridiagonal LU method derived in class (you get partial credit if you use a full matrix; to get full credit use only vectors). Turn in the program listing. For p = 1 : 4, plot the exact solution (y(x) vs x) and the numerical solution (ui vs xi, including the boundary points). For p = 1 : 20, present a table with the following data. column 1: h; column 2: ||uh − yh||∞; column 3: ||uh −yh||∞/h^4 ; column 4: cpu time; column 5: (cpu time)/n (where h = 1 /(n+1) as in class). Explain the trends in each column. Among the given values of h, which value ensures that the error ||uh − yh||∞ is less than 10 −^3 for the 4th order scheme? for the 2nd order scheme from hw1?