Problem 3. Let f(r) be the piecewise linear function on [-1, 1] that consists of four line segments connecting the points (-1,-1) and (-0.5, 1); (-0.5, 1) and (0, -1); (0, -1) and (0.5, 1); (0.5,1) and (1,-1). Write a code that computes the barycentric Lagrange form of the interpolating polynomial pn (x) of degree n for n+ 1 Chebyshev nodes. The code should produce pictures similar to Fig. 5.1 in Berrut et al for your piecewise function f(x). Submit your pictures for p20 (x), and p100(x). Exercise 6.9 (Lyche and Merrien) and the paper by Berrut et al are useful. Problem 4. Add a few lines to your code in Problem 3 to compute the numer- ical error of approximation: en := _max | f(x) - pn(x)|. One way to do it is to introduce a very fine uniform grid {t}, where m is very large. Then max f(x)-Pn(x) max f(k) - Pn(k). Submit a table that has two columns: n, en, for n = 2¹, 1 = 1,...,7. The table will have seven rows. Problem 5. Based on the table in Problem 4, decide on numerical convergence of pn to f. Prove or disprove that f(x) is Lipschitz continuous. Based on your answer, discuss theoretical convergence of pn to f.
Problem 3. Let f(r) be the piecewise linear function on [-1, 1] that consists of four line segments connecting the points (-1,-1) and (-0.5, 1); (-0.5, 1) and (0, -1); (0, -1) and (0.5, 1); (0.5,1) and (1,-1). Write a code that computes the barycentric Lagrange form of the interpolating polynomial pn (x) of degree n for n+ 1 Chebyshev nodes. The code should produce pictures similar to Fig. 5.1 in Berrut et al for your piecewise function f(x). Submit your pictures for p20 (x), and p100(x). Exercise 6.9 (Lyche and Merrien) and the paper by Berrut et al are useful. Problem 4. Add a few lines to your code in Problem 3 to compute the numer- ical error of approximation: en := _max | f(x) - pn(x)|. One way to do it is to introduce a very fine uniform grid {t}, where m is very large. Then max f(x)-Pn(x) max f(k) - Pn(k). Submit a table that has two columns: n, en, for n = 2¹, 1 = 1,...,7. The table will have seven rows. Problem 5. Based on the table in Problem 4, decide on numerical convergence of pn to f. Prove or disprove that f(x) is Lipschitz continuous. Based on your answer, discuss theoretical convergence of pn to f.
Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 8 steps with 8 images
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,