- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
第12讲内插和外推方法
Chapter 3, Interpolation and Extrapolation;Interpolation Extrapolation;低级多项式;Polynomial Interpolation;Vandermonde Matrix Equation;Condition Number;Norms;Commonly Used Norms;Lagrange’s Formula;Joseph-Louis Lagrange (1736-1813);Neville’s Algorithm;Determine P12 from P1 P2;Determine P123 from P12 P23;Recursion Relation for P;Use Small Difference C D;Deriving the Relation among C D;Evaluate P(3) given 4-points (0,1), (1,2), (2,3),(4,0).;polint( ) Program;polint(), continued; Subroutine polint(xa,ya,n,x,y,dy) Integer n, nmax Parameter (nmax=10) Integer i,m,ns Real den,dif,dift,ho,hp,w,c(nmax),d(nmax) Ns=1 Dif=abs(x-xa(1)) Do 11 i=1,n Dift=abs(x-xa(i)) If (dift.lt.dif) then Ns=i Idf=dift Endif ;; D(i)=hp*den C(i)=ho*den Enddo 12 If(2*ns.lt.n-m) then Dy=c(ns+1) Else Dy=d(ns) Ns=ns-1 Endif Y=y+dy Enddo 13 Return end ;Piecewise Linear Interpolation;Piecewise Polynomial Interpolation;Cubic Spline;;2. We now discuss Interpolation Extrapolation The function passes through all (or at least most) points. ;;;;Lagrange Interpolating Polynomials (CC 18.2) Given n+1 data points (xi,yi), find the nth order polynomial: y = pn(x) = a0 + a1x + a2x2 + … + anxn that passes through all of the points. The Lagrangian polynomials approach employs a set of nth order polynomials, Li(x), such that:;;i;;;;;Cubic Splines;;;;;Natural Cubic Splines;;;;;;;x = 0:10; y = sin(x); xx = 0:0.25:10; yy = spline(x,y,xx); plot(x,y,o,xx,yy) ;npts = 10; xy = [randn(1,npts); randn(1,npts)]; plot(xy(1,:),xy(2,:),ro,LineWidth,2); for n = 1:npts, text(xy(1,n),xy(2,n),[ num2str(n)]) end set(gca,XTick,[],YTick,[]) cv = cscvn(xy); fnplt(c
您可能关注的文档
最近下载
- 液体伤口敷料产品技术要求标准2023版.docx VIP
- 《水利工程外观质量评定规程DB34∕T 4010-2021》知识培训.pptx VIP
- DLT741-2023年架空送电线路运行规程.docx
- 并网光伏电站项目工程现场电气二次施工方案.doc
- 英语新课标背景下:非纸笔测试在小学英语期末评价中的实践研究.pdf VIP
- 股市实战绝技汇总篇(精华).doc VIP
- 历年行情的十大牛股.doc VIP
- 安徽省六校联考暨安徽六校教育研究会2026届高三入学素质检测-物理试卷答案.docx VIP
- 基于Ansys CFX的风扇叶片双向流固耦合分析.docx VIP
- (高清版)DB1307∕T 334-2020 蛋鸡无抗养殖技术规范.pdf VIP
文档评论(0)