1 / 23

MA2213 Lecture 2

MA2213 Lecture 2. Interpolation. Introduction. Problem : Find / evaluate a function P whose values are specified on some set S. may arise from . The specified values. measurements of a physical function f. (ground height, air velocity-pressure-temperature).

zamora
Download Presentation

MA2213 Lecture 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MA2213 Lecture 2 Interpolation

  2. Introduction Problem : Find / evaluate a function P whose values are specified on some set S may arise from The specified values measurements of a physical function f (ground height, air velocity-pressure-temperature) values of a mathematical function f (cos, log, exp, solution of a differential equation)

  3. Applications Medicine, Entertainement, Earth Sciences Computer Aided Design and Manufacturing Image Processing, Computer Graphics and Vision • Applications of interpolation and area display in EEG. • Applications of interpolation and area display in EEG. McGee FE Jr, Lee RG, Harris JA, Melby G, Bickford RG.MeSH Terms Automatic Data Processing* ... An Efficient Spline Basis For Multi-dimensional Applications... File Format: PDF/Adobe AcrobatIn many applications, bilinear interpolation is. used instead of cubic splines because of its simplicity in. implementation. When HDTV is realized, ... http://der.topo.auth.gr/DERMANIS/PDFs/Erice.pdf http://en.wikipedia.org/wiki/Linear_interpolation#Applications http://skagit.meas.ncsu.edu/~helena/gmslab/viz/sinter.html

  4. One Dimensional Case Given a sequence of numbers called nodes, and for each a second number we are looking for a function P so that A pair is called a data point and P is called an interpolant for the data points.

  5. Example Suppose we have a table like this, which gives some values of an unknown function f. 0 0 1 0.8415 2 0.9093 3 0.1411 4 −0.7568 5 −0.9589 6 −0.2794 Plot of the data pointsas given in the table What value does the function have at, say, x = 2.5? Interpolation answers questions like this.

  6. Choosing a Method Linear Interpolation Polynomial Interpolation There are many different interpolation methods, including linear and polynomial. Some of the concerns to take into account when choosing an appropriate method are: How accurate is the method? How expensive is it? How smooth is the interpolant? How many data points are needed?

  7. Linear Interpolation Formula for the linear interpolant on each of n-1 intervals Remark If n > 2 then the interpolant is not a linear function, however, it is a piecewise linear function

  8. Linear Interpolation Error is Definition The max error on the interval Graph of Remark The error is clearly depends on f(x), not only of the interpolation points. Question Where does the max error occur ?

  9. Linear Interpolation Error where The max error occurs at If has 2 continuous derivatives on then where is the deg 1 TP

  10. Linear Interpolation Basis Functions

  11. Linear Interpolation Basis Functions Question Why is piecewise linear ?

  12. Polynomial Interpolation If then and where  unique solution

  13. Lagrange Basis Functions Question What is degree ?

  14. Polynomial Interpolation Error Theorem 5.3 (page 121) If f has n continuous derivatives on [a,b] and and is the unique polynomial of degree that satisfies and then Corollary

  15. Polynomial Interpolation Error Example sin(.32)=.314567 , sin(.34)=.333487 , sin(.36) = .352274 , compute sin(.3367) Solution Using piecewise linear interpolation

  16. Polynomial Interpolation Error Example sin(.32)=.314567 , sin(.34)=.333487 , sin(.36) = .352274 , compute sin(.3367) Solution using quadratic interploation

  17. Divided Differences Theorem If and is continuous then

  18. Divided Differences Properties Invariance under permutation If is continuous then Definition If is continuous then we define

  19. Divided Differences Computation For Question: How smooth must f be at repeated values of x ?

  20. Newton’s Interpolation Formula denote the unique polynomial Let of degree < n that interpolates a function f at points This means that Then Question How can the interpolant be computed recursively ‘point by point’ ?

  21. Natural Cubic Splines Problem Given such that find a function and that minimizes among all functions that satisfy the interpolatory constraint. Solution Unique function s described on pp.131-134 of Atkinson. Its restriction to each interval is a cubic polynomial determined by and parameters satisfying linear eqns.

  22. Natural Cubic Splines and where Splines – are serious business !

  23. Homework Due at End of Lab 1 Question 1. Write and use a MATLAB program to solve problem 1. a. on page 77 using the bisection method. Make a plot of the errors as a function of the number of iterations. Question 2. Write and use a MATLAB program to find the real root of the polynomial (in the previous question) using Newton’s method. Make a plot of the errors as a function of the number of iterations. Suggested Reading: pages 117-159 Appendix B. Mathematical Formulas

More Related