
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
Material Type: Assignment; Class: NUMERICAL METHODS; Subject: MATHEMATICS; University: Texas A&M University; Term: Unknown 1989;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Instructor: Prof. Wolfgang Bangerth [email protected] Teaching Assistants: Dukjin Nam [email protected]
Problem 1 (Steepest descent iteration). Repeat what you did for Prob- lem 1 of Homework 6 (Jacobi iteration) and Problem 2 of Homework 7 (Gauss- Seidel iteration), but use the steepest descent algorithm instead to compute the vectors x(k). Generate the same plots as before. Compare your results with the previous results, in particular compare how quickly the iterations appear to converge. (5 points)
Problem 2 (Conjugate gradient iteration). Do the same as in Problem 1 one last time, but use the Conjugate Gradient algorithm this time to compute the vectors x(k). Generate the same plots as before. Compare your results with the previous results, in particular compare how quickly the iterations appear to converge. (5 points)
Problem 3 (Lagrange interpolation).
(a) Compute the Lagrange interpolation polynomials L 4 ,k, k = 0... 3, for the points x 0 = 1, x 1 = 2, x 2 = 1.5 and x 3 = 1.6.
(b) Calculate the interpolating polynomial for the data set where yk = log xk at the four points xk. Write the polynomial in the form p 4 (x) = a 3 x^3 + a 2 x^2 + a 1 x + a 0. (4 points)
Problem 4 (Lagrange interpolation). The polynomial p 4 (x) calculated in Problem 3 by construction interpolates the function f (x) = log x. Compute an upper bound for the error on the interval [1, 2], using the theorem that states how large |f (x) − p 4 (x)| can at most be. (3 points)