第五节松弛法.ppt

第五节松弛法.ppt

ID:48147567

大小:475.50 KB

页数:14页

时间:2020-01-17

第五节松弛法.ppt_第1页
第五节松弛法.ppt_第2页
第五节松弛法.ppt_第3页
第五节松弛法.ppt_第4页
第五节松弛法.ppt_第5页
资源描述:

《第五节松弛法.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、§5松弛法/*RelaxationMethods*/换个角度看Jacobi方法:Jacobi第K次迭代结果§5RelaxationMethods§5RelaxationMethodsGauss-SeidelIterativeMethod…………写成矩阵形式:BGauss-Seidel迭代阵§5RelaxationMethodsGauss-Seidel…………§5RelaxationMethods§5RelaxationMethods定理设A可逆,且aii0,松弛法从任意出发对某个收敛(L)<1。§5

2、RelaxationMethods§5RelaxationMethods定理(Kahan必要条件)设A可逆,且aii0,松弛法从任意出发收敛0<<2。证明:,而且收敛

3、i

4、<1总成立已知收敛

5、det(L)

6、<1

7、det(L)

8、=

9、1

10、n<10<<2§5RelaxationMethods定理(Ostrowski-Reich充分条件)若A对称正定,且有0<<2,则松弛法从任意出发收敛。(证明以后给出)Q:Whatfactordeterminesthespeedofconvergence

11、?A:Thesmaller(B)is,thefastertheiterationswillconverge.对于SOR法,希望找使得(L)最小。§5RelaxationMethods定理若A为对称正定三对角阵,则且SOR的最佳松弛因子/*optimalchoiceofforSORmethod*/为,此时。例:,考虑迭代格式问:取何值可使迭代收敛?取何值时迭代收敛最快?解:考察B=I+A的特征根1=1+,2=1+3收敛要求(B)<1-2/3<<0(B)=max{

12、1+

13、,

14、

15、1+3

16、}当取何值时最小?-2/3-1/30=-1/2§5RelaxationMethodsLab08.SORMethodUsetheSORmethodtosolveagivenn×nlinearsystemwithaninitialapproximationandasetof’s.InputThereareseveralsetsofinputs.Foreachset:The1stlinecontainsaninteger100n0whichisthesizeofamatrix.n=1sig

17、nalstheendoffile.Thefollowingnlinescontaintheaugmentedmatrixinthefollowingformat:Thenumbersareseparatedbyspacesandnewlines.ThenextlinecontainsarealnumberTOL,whichisthetolerancefor

18、

19、·

20、

21、norm,andanintegerN0whichisthemaximumnumberofiterations.Thelastlineofeac

22、htestcasecontainsanintegerm>0,followedbymreal’s.§5RelaxationMethodsOutput(representsaspace)Foreach,theremustbeasetofoutputsinthefollowingformat:The1stlinecontainsanandthecorrespondingnumberofiterationstaken.IntheCprintf:fprintf(outfile,"%4.2f%d",omeg

23、a,iter_no);Thecorrespondingsolutionorerrormessagesaretobeprintedasthefollowing:EachentryofthesolutionistobeprintedasintheCfprintf:fprintf(outfile,"%12.8f",x);IfthematrixAhasazerocolumn,printthemessage“Matrixhasazerocolumn.Nouniquesolutionexists.

24、n”.IfthemethodfailstogiveasolutionafterNiterations,printthemessage“Maximumnumberofiterationsexceeded.”.Ifthereisanentryofthatisoutoftherange[2127,2127],printthemessage“Noconvergence.”.Theoutp

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。