《MATLAB数值计算》(美)Cleve B.Moler 第三章插值第1节插值多项式毕业设计(论文)英文文献翻译.doc
《《MATLAB数值计算》(美)Cleve B.Moler 第三章插值第1节插值多项式毕业设计(论文)英文文献翻译.doc》由会员分享,可在线阅读,更多相关《《MATLAB数值计算》(美)Cleve B.Moler 第三章插值第1节插值多项式毕业设计(论文)英文文献翻译.doc(9页珍藏版)》请在三一办公上搜索。
1、Chapter 3InterpolationInterpolation is the process of defining a function that takes on specified values at specified points. This chapter concentrates on two closely related interpolants, the piecewise cubic spline and the shape-preserving piecewise cubic named “pchip”.3.1 The Interpolating Polynom
2、ialWe all know that two points determine a straight line. More precisely, any two points in the plane, and, with , determine a unique first degree polynomial in whose graph passes through the two points. There are many different formulas for the polynomial, but they all lead to the same straight lin
3、e graph.This generalizes to more than two points. Given points in the plane, ,, with distinct s, there is a unique polynomial in of degree less than whose graph passes through the points. It is easiest to remember that , the number of data points, is also the number of coefficients, although some of
4、 the leading coefficients might be zero, so the degree might actually be less than . Again, there are many different formulas for the polynomial, but they all define the same function.This polynomial is called the interpolating polynomial because it exactly re- produces the given data.,Later, we exa
5、mine other polynomials, of lower degree, that only approximate the data. They are not interpolating polynomials.The most compact representation of the interpolating polynomial is the La- grange form.There are terms in the sum and terms in each product, so this expression defines a polynomial of degr
6、ee at most . Ifis evaluated at , all the products except the th are zero. Furthermore, the th product is equal to one, so the sum is equal to and the interpolation conditions are satisfied.For example, consider the following data set:x=0:3;y=-5 -6 -1 16;The commanddisp(x;y)displays 0123-5-6-116The L
7、agrangian form of the polynomial interpolating this data isWe can see that each term is of degree three, so the entire sum has degree at most three. Because the leading term does not vanish, the degree is actually three. Moreover, if we plug in or 3, three of the terms vanish and the fourth produces
8、 the corresponding value from the data set.Polynomials are usually not represented in their Lagrangian form. More fre- quently, they are written as something likeThe simple powers of x are called monomials and this form of a polynomial is said to be using the power form.The coefficients of an interp
9、olating polynomial using its power form,can, in principle, be computed by solving a system of simultaneous linear equationsThe matrix of this linear system is known as a Vandermonde matrix. Its elements areThe columns of a Vandermonde matrix are sometimes written in the opposite order, but polynomia
10、l coefficient vectors in Matlab always have the highest power first.The Matlab function vander generates Vandermonde matrices. For our ex- ample data set,V = vander(x)generatesV =00011111842127931Thenc = Vycomputes the coefficientsc =1.00000.0000-2.0000-5.0000In fact, the example data was generated
11、from the polynomial .One of the exercises asks you to show that Vandermonde matrices are nonsin- gular if the points are distinct. But another one of the exercises asks you to show that a Vandermonde matrix can be very badly conditioned. Consequently, using the power form and the Vandermonde matrix
12、is a satisfactory technique for problems involving a few well-spaced and well-scaled data points. But as a general-purpose approach, it is dangerous.In this chapter, we describe several Matlab functions that implement various interpolation algorithms. All of them have the calling sequencev = interp(
13、x,y,u)The first two input arguments, and , are vectors of the same length that define the interpolating points. The third input argument, , is a vector of points where the function is to be evaluated. The output, v, is the same length as u and has elements Our first such interpolation function, poly
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MATLAB数值计算 MATLAB数值计算美Cleve B.Moler 第三章插值第1节插值多项式 毕业设计论文英文文献翻译 MATLAB 数值 计算 Cleve Moler 第三 章插值第

链接地址:https://www.31ppt.com/p-3933134.html