- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Gauss全主元消去法
Gaussian elimination with complete pivoting
To keep the Gaussian elimination method smooth operation,We must ensure that the pivot elementandcan not too small in each operation.So?the selection of appropriate pivot ?elements?in every step of?elimination.,the?maximum absolute value?or?the major elements?as the pivot ?element,this improved Gaussian?elimination method?named?Gauss pivot?element elimination. There have 3 methods to select pivot element,Gaussian elimination with partial pivoting、scaled partial pivoting、complete pivoting.Through access to?some?data,I introduce the Gaussian elimination with complete pivoting briefly.
Complete pivoting at the th step searches all the entries,to find the entry to the largest magnitude.Both row and column interchanges are performed to bring this entry to the pivot position.
The specific steps:
The th elimination,find all(i=k,k+1,,n; j=k,k+1n),the is the pivot element.
Both row and column interchanges are performed to bring this entry to the pivot position.Move to (k,k).Until the n-1?step,?the original?equation into?the same?equations?on?triangular?solution:
Backward substitution:
Backward substitution is the solution?of triangular systems?.If,then
Algorithm:
function x=Gauss(A,b)
B=[A,b];
n=length(A);
x=zeros(n,2);
for i=1:n
x(i,1)=i; %x第一列数字i代表x(i)
end
for i=1:n-1
[m,p]=max(abs(B(i:n,i:n)));%求绝对值最大系数所在行号和列号
[l,q]=max(m);
if m==0;
disp(A奇异)
return
end
if p(q)+i-1i %行变换
pm=p(q)+i-1;
C(i:n+1)=B(i,i:n+1);
B(i,i:n+1)=B(pm,i:n+1);
B(pm,i:n+1)=C(i:n+1);
end
if q+i-1i %列变换
q=q+i-1;
D(1:n)=B(1:n,q);
B(1:n,q)=B(1:n,i);
B(1:n,i)=D(1:n);
E(1:2)=x(q,:);%调换解的顺序
x(q,:)=x(i,:);
x(i,:)=E(1:2);
end
for k=i+1:n %消元
am=B(k,i)/B(i,i);
B(k,i:n+1)=B(k,i:n+1)-am*B(i,i:n+1);
end
end
x(n,2)=B(n,n+1)/B(n,n);
for i=n-1:-1:1 %回代
xx(i+1:n)=x(i+1:n,2);
x(i,2)=(B(i,n+1)-B(i,i+1:n)*xx(i+1:n))/B(i,i);
end
for i=1:n-1 % 调换解的顺序
[u,r]=min(x(i:n,1));
if r+i-1i
r=r+i-1;
xf(1:2)=x(i,1:2);
x(i,1:2)=x(r,1:2);
x(r,1:2)=xf(1:2);
end
end
end
For example P89,Exercis
您可能关注的文档
- Excel图表半圆式饼图.doc
- Excel制作复合饼图.docx
- excel删除重复数据.doc
- Excel打印的技巧与问题小结.doc
- excel怎样删除、替换单元格中的部分内容.docx
- Excel平台的EST-SSR分析方法.pdf
- ExcEl技巧快速找到一列中的重复数据百度经验.pdf
- Excel打印标签指南.pdf
- Excel统计分析报告.doc
- Excel部分函数.doc
- 剧本杀行业报告:内容创作规范与剧本市场拓展策略.docx
- 剧本杀行业区域市场区域文化特色与市场潜力分析报告.docx
- 剧本杀行业区域市场拓展实战案例研究.docx
- 剧本杀行业区域市场拓展路径与模式探索报告.docx
- 剧本杀行业区域市场竞争态势与品牌差异化策略研究报告.docx
- 剧本杀行业2025年西北区域市场市场细分领域竞争态势与品牌竞争策略分析研究报告.docx
- 剧本杀行业2025年西北市场拓展前景预测报告.docx
- 剧本杀行业2025年长沙市场发展潜力分析报告.docx
- 剧本杀行业2025年长三角市场竞争策略与布局分析.docx
- 医疗行业数据合规:2025年数据安全法实施后的合规监管挑战与应对.docx
最近下载
- 手术室人员行为管理与规范.pptx VIP
- 2025年呼和浩特市土默特左旗社区工作者招聘考试试题 .pdf VIP
- 卫生院优质服务基层行创建资料(1.1.2主要任务).docx VIP
- 2025年教职工疗休养服务项目212页.docx VIP
- 2025年内蒙古自治区中考语文试题卷(含答案解析).docx
- 中学生英才计划面试常见问题.docx VIP
- 社会组织矛盾纠纷排查化解工作总结.pptx VIP
- 近十年管综数学真题.pdf VIP
- 13、安放式支管台组对焊接.pptx VIP
- SIEMENS西门子 SIMATIC ET 200SP 电机启动器 (3RK1308‑0..00‑0CP0)设备手册.pdf VIP
文档评论(0)