资源预览内容
第1页 / 共9页
第2页 / 共9页
第3页 / 共9页
第4页 / 共9页
第5页 / 共9页
第6页 / 共9页
第7页 / 共9页
第8页 / 共9页
第9页 / 共9页
亲,该文档总共9页全部预览完了,如果喜欢就下载吧!
资源描述
Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-date数值分析雅克比高斯迭代法MATLAB程序数值分析雅克比高斯迭代法MATLAB程序1.雅可比迭代法:function x,n=jaccbi(A,b,x0,eps,t)if nargin=3; eps=1e-6; m=200;elseif nargin=eps x0=x; x=B*x0+f; n=n+1; if(n=m) disp(可能不收敛); return; end;end2.高斯赛德尔迭代法:function x,n=gsdddy(A,b,x0,eps,t)if nargin=3; eps=1e-6; m=200;elseif nargin=eps x0=x; x=B*x0+f; n=n+1; if(n=m) disp(迭代次数过多,可能不收敛); return; end;endPS:有兴趣小朋友试一下,结果与x0无关-
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号