CIS-541-–-Numerical-Methods--Department-of-Computer-:顺541–数值方法-计算机系-资料课件.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《CIS-541-–-Numerical-Methods--Department-of-Computer-:顺541–数值方法-计算机系-资料课件.ppt》由用户(ziliao2023)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CIS 541 Numerical Methods Department of Computer 数值 方法 计算机系 资料 课件
- 资源描述:
-
1、CSE 541-DifferentiationRoger CrawfisAugust 17,2023OSU/CIS 5412Numerical Differentiation The mathematical definition:Can also be thought of as the tangent line.0()()()limhf xhf xfxhxx+hAugust 17,2023OSU/CIS 5413Numerical Differentiation We can not calculate the limit as h goes to zero,so we need to a
2、pproximate it.Apply directly for a non-zero h leads to the slope of the secant curve.xx+hAugust 17,2023OSU/CIS 5414Numerical Differentiation This is called Forward Differences and can be derived using Taylors Series:22()()()()2!()()()()2!()()()()2!()()()0hf xhf xfx hfhf xhf xfx hff xhf xhfxfhf xhf x
3、fx as hhTheoretically speakingAugust 17,2023OSU/CIS 5415Truncation Errors Let f(x)=a+e,and f(x+h)=a+f.Then,as h approaches zero,ea and fa.With limited precision on our computer,our representation of f(x)a f(x+h).We can easily get a random round-off bit as the most significant digit in the subtractio
4、n.Dividing by h,leads to a very wrong answer for f(x).August 17,2023OSU/CIS 5416Error TradeoffUsing a smaller step size reduces truncation error.However,it increases the round-off error.Trade off/diminishing returns occurs:Always think and test!Log errorLog step sizeTruncation errorRound off errorTo
5、tal errorPoint of diminishingreturnsAugust 17,2023OSU/CIS 5417Numerical Differentiation This formula favors(or biases towards)the right-hand side of the curve.Why not use the left?xx+hx-hAugust 17,2023OSU/CIS 5418Numerical Differentiation This leads to the Backward Differences formula.2()()()()2!()(
6、)()()2!()()()0hf xhf xfx hff xf xhhfxfhf xf xhfx as hhAugust 17,2023OSU/CIS 5419Numerical Differentiation Can we do better?Lets average the two:This is called the Central Difference formula.1()()()()()()()22f xhf xf xf xhf xhf xhfxhhhForward difference Backward differenceAugust 17,2023OSU/CIS 54110C
7、entral Differences This formula does not seem very good.It does not follow the calculus formula.It takes the slope of the secant with width 2h.The actual point we are interested in is not even evaluated.xx+hx-hAugust 17,2023OSU/CIS 54111Numerical Differentiation Is this any better?Lets use Taylors S
8、eries to examine the error:232333()()()()()23!()()()()()23!()()2()()()3!3!hhf xhf xfx hfxfhhf xhf xfx hfxfsubtractinghhf xhf xhfx hffAugust 17,2023OSU/CIS 54112Central Differences The central differences formula has much better convergence.Approaches the derivative as h2 goes to zero!2()()1()(),26f
9、xhf xhfxfhxh xhh2()()()2f xhf xhfxO hhAugust 17,2023OSU/CIS 54113Warning Still have truncation error problem.Consider the case of:Build a table withsmaller values of h.What about largevalues of h for thisfunction?()100100100()21,0.000333,60.01000330.0099966()0.0100500.000666666Relative error:0.01-0.
10、0100500.5%0.01xf xxhxhfxhat xhwith significantdigitsfxAugust 17,2023OSU/CIS 54114Richardson Extrapolation Can we do better?Is my choice of h a good one?Lets subtract the two Taylor Series expansions again:2345452345455533()()()()()()()23!4!5!()()()()()()()23!4!5!()()()()2()222()3!3!5!hhhhf xhf xfx h
11、fxfxfxfxhhhhf xhf xfx hfxffxfxsubtractingfxfxhf xhf xhfx hhhfxAugust 17,2023OSU/CIS 54115Richardson Extrapolation Assuming the higher derivatives exist,we can hold x fixed(which also fixes the values of f(x),to obtain the following formula.Richardson Extrapolation examines the operator below as a fu
12、nction of h.2462461()()()2fxf xhf xha ha ha hh1()()()2hf xhf xhhAugust 17,2023OSU/CIS 54116Richardson Extrapolation This function approximates f(x)to O(h2)as we saw earlier.Lets look at the operator as h goes to zero.246246246246()()()()2222hfxa ha ha hhhhhfxaaaSame leading constantsAugust 17,2023OS
展开阅读全文
链接地址:https://www.163wenku.com/p-7336875.html