您好,欢迎访问三七文档
当前位置:首页 > 财经/贸易 > 资产评估/会计 > 计算方法课后习题答案
习题一3.已知函数yx在4,6.25,9xxx处的函数值,试通过一个二次插值函数求7的近似值,并估计其误差。解:0120124,6.25,9;2,2.5,3yxxxxyyy由题意知:(1)采用Lagrange插值多项式220()()jjjyxLxlxy270201120120102101220217()|()()()()()()()()()()()()(76.25)(79)(74)(79)(74)(76.25)22.532.2552.252.752.7552.6484848xyLxxxxxxxxxxxxxyyyxxxxxxxxxxxx其误差为(3)25(3)25(3)2[4,9]2()(7)(74)(76.25)(79)3!3()83max|()|40.0117281|(7)|(4.5)(0.01172)0.008796fRfxxfxR又则(2)采用Newton插值多项式2()yxNx根据题意作差商表:iix()ifx一阶差商二阶差商04216.252.5292932114495224(7)2(74)()(74)(76.25)2.64848489495N4.设0,1,...,kfxxkn,试列出fx关于互异节点0,1,...,ixin的Lagrange插值多项式。注意到:若1n个节点0,1,...,ixin互异,则对任意次数n的多项式fx,它关于节点0,1,...,ixin满足条件,0,1,...,iiPxyin的插值多项式Px就是它本身。可见,当kn时幂函数()(0,1,...,)kfxxkn关于1n个节点0,1,...,ixin的插值多项式就是它本身,故依Lagrange公式有000(),0,1,...,nnnkkkijjjjjijiijxxxlxxxknxx特别地,当0k时,有0001nnnijjjijiijxxlxxx而当1k时有000nnnijjjjjijiijxxxlxxxxx5.依据下列函数表分别建立次数不超过3的Lagrange插值多项式和Newton插值多项式,并验证插值多项式的唯一性。解:(1)Lagrange插值多项式330()()jjjLxlxy30,()jiiijijxxlxxx3120010203124()010204xxxxxxxxxlxxxxxxx=3271488xxx0321101213024()101214xxxxxxxxxlxxxxxxx=32683xxx0312202123014()202124xxxxxxxxxlxxxxxxx=32544xxxx0124()fx192330123303132012()404142xxxxxxxxxlxxxxxxx=323224xxx32222321240241901020410121401401223320212440414212313243685432848114511442xxxxxxLxxxxxxxxxxxxxxxxxxxxxx(2)Newton插值多项式kkx()kfx一阶差商二阶差商三阶差商00111982223143343-1081143001001201()()(,)()(,,)()()Nxfxfxxxxfxxxxxxx0123012(,,,)()()()fxxxxxxxxxx1118(0)3(0)(1)(0)(1)(2)4xxxxxx32114511442xxx由求解结果可知:33()()LxNx说明插值问题的解存在且唯一。7.设4fxx,试利用Lagrange余项定理给出fx以1,0,1,2为节点的插值多项式3Lx。解:由Lagrange余项定理(1)1()()()()()(1)!nnnnfRxfxLxxn[,]ab可知:当3n时,(1)(4)()()4!nxffx301234!()()()()()()(31)!Lxfxxxxxxxxx4(1)(0)(1)(2)xxxxx3222xxx8.设2(),fxCab且()()0fafb,求证21max()()max()8axbaxbfxbafx证明:以,ab为节点进行线性插值,得()()()xbxaLxfafbabba1由于()()0fafb,故1()0Lx。于是由''1()()()()(),2!ffxLxxaxbab有''()()()()2ffxxaxb,令()()()[,]txxaxbxab()2()0()2txxababxtx时有极大值21max()=max()max()()21max()()()2221=()max()8axbaxbaxbaxbaxbfxfxxaxbababfxabbafx13.设节点0,1,,ixin与点a互异,试对1fxax证明0101,,,,0,1,,kkiifxxxknax并给出fx的Newton插值多项式。解依差商的定义001()fxax,100110101010()()1111(,)()()()fxfxfxxxxxxaxaxaxax一般地,设010011(,,,)()()kkkiiiifxxxaxax则1210101110110101101010(,,,)(,,,)(,,,)111()11111kkkkkkiikiikiikkkiifxxxfxxxfxxxxxxxaxaxaxxxaxaxax故1fxax的Newton插值多项式为001001011001100101100()()(,)()(,,,)()()()()()()1()()()()()1nnnnnknikikiNxfxfxxxxfxxxxxxxxxxxxxxxxxaxaxaxaxaxaxxxaxax16.求作满足条件1(0)1,(0),(1)2,(1)2.2HHHH的插值多项式Px。解法1:根据三次Hermite插值多项式:22001130101011010220100110110()(12)()(12)()()()()()xxxxxxxxHxyyxxxxxxxxxxxxxxyxxyxxxx并依条件1(0)1,(0),(1)2,(1)2.2HHHH,得2222331()(12)(1)2(32)(1)2(1)211122Hxxxxxxxxxxx解法2:由于010,1xx,故可直接由书中(3.9)式,得''3001100112222311211232112211122HxAxyAxyBxyBxyxxxxxxxxxx18.求作满足条件333301,12,29,13HHHH的插值多项式3Hx,并估计其误差。解法1:由已知条件x012y129y3用基函数方法构造3xH。令300112211xAxyAxyAxyBxyH其中,0121,,,AxAxAxBx均为三次多项式,且满足条件0000AAAAAAAAABBBBAAA依条件可设2012xCxxA,由00=1,A可得:2011C=-,1222xxxA同理,212112,1,122xxxxxxxxxxAAB231121221232xxxxxxxxH21192xx31x误差为:4233124!fxfxHxxxxR解法2:用承袭性构造3xH由条件33301,12,29HHH先构造一个二次多项式2()Nx作差商表:iix()iPx一阶差商二阶差商001112122973于是有:22()11(0)3(0)(1)321Nxxxxxx令所求插值多项式32012()()()()xNxcxxxxxxH利用剩下的一个插值条件313H,得21101231()()()Nxcxxxxfx由此解出31211012()341()()1012fxNxcxxxx故有32()()(1)(2)1PxNxxxxx19.求作满足条件33000,1,1,2kkiiHxfxiHxfxk的插值多项式Px。并给出插值余项。解:令320200003202fxHxfxfxxxxxHxHxcxx利用插值条件311Hxfx定出:1230fxHxcxx注意到这里0x是三重零点,1x是单零点,故插值余项为433014!ffxHxxxxx20.求作次数4的多项式Px,使满足条件01,10,02,110,140PPPPP并列出插值余项。解法1:由于在0x处有直到一阶导数值的插值条件,所以它是“二重节点”;而在1x处有直到二阶导数值的插值条件所以1x是“三重节点”。因此利用重节点的差商公式:011011,,...,1,,...,,,...,,!kkkxxxxkfxfxxxfxxxxk+=lim可以作出差商表ixifx一阶二阶三阶四阶00111-1-1000-21101039206115根据Newton插值多项式,有2000000102220011010011101,,,,,,(),,,,()Pxfxfxxxxfxxxxxfxxxxxxxxfxxxxxxxxx22221236(1)5(1),Pxxxxxxx且插值余项为352115!fxPxfxx第二章答案1.计算下列函数fx关于0,1C的12,,fff:注:max,axbffx1baffxdx,1222baffxdx3101112231
本文标题:计算方法课后习题答案
链接地址:https://www.777doc.com/doc-5688901 .html