当前位置: 首页 > news >正文

网站轮播图制作曲靖网站制作

网站轮播图制作,曲靖网站制作,中国网络推广网站排名,如何做好网络推广销售给出线性方程组 Hn*x b#xff0c;其中系数矩阵Hn为希尔伯特矩阵#xff1a; 假设 x ∗ (1, 1, . . . , 1)T#xff0c;b Hnx ∗。若取 n 6,8, 10#xff0c;分别用 Jacobi 迭代法及 SOR迭代#xff08;ω 1, 1:25,1:5#xff09;求解#xff0c;比较计算结果。…给出线性方程组 Hn*x b其中系数矩阵Hn为希尔伯特矩阵      假设 x ∗ (1, 1, . . . , 1)Tb Hnx ∗。若取 n 6,8, 10分别用 Jacobi 迭代法及 SOR迭代ω 1, 1:25,1:5求解比较计算结果。 MATLAB源码如下运行Demo_Jacobi_SOR.m文件附件包含另外两个函数文件分别为Jacobi.m与SOR.m。 Demo_Jacobi_SOR.m clear all clc n[6 8 10]; for i1:length(n) H{i}hilb(n(i)); size_H{i}size(H{i},1); x_true{i}ones(1,size_H{i}); b{i}x_true{i}*H{i}; x_ini{i}zeros(1,size_H{i}); %accuracy5*(10^-6); accuracy0.01; end %Jacobi disp(Jacobi); for i1:length(n) fprintf(The dimension is %d\n,n(i)) [x{i},k{i}]Jacobi(H{i},b{i},x_ini{i},accuracy,x_true{i}); end %SOR disp(SOR); w1; disp(SOR w1); for i1:length(n) fprintf(The dimension is %d\n,n(i)) [q{i},e{i}]SOR(H{i},b{i},x_ini{i},accuracy,x_true{i},w); end w1.25; disp(SOR w1.25); for i1:length(n) fprintf(The dimension is %d\n,n(i)) [z{i},x{i}]SOR(H{i},b{i},x_ini{i},accuracy,x_true{i},w); end w1.5; disp(SOR w1.5); for i1:length(n) fprintf(The dimension is %d\n,n(i)) [v{i},b{i}]SOR(H{i},b{i},x_ini{i},accuracy,x_true{i},w); end %[x,k]Jacobi(A,b,x_ini,accuracy,x_true); Jacobi.m function [x,k]Jacobi(A,b,x_ini,accuracy,x_true) % input:  A—Left Matrix %         b—Right Matrix %         x_ini—initial value %         accuracy—calculation precision between solution and true value %         x_true—true valuer % output: x—solution %         k—iteration-1 nsize(A,1); uint16 k; k1; x{1}x_ini; while(norm(x_true-x{k},Inf)accuracy) kk1; %disp(k-1); for i1:1:n temp10; for j1:1:i-1 temp1temp1A(i,j)*x{k-1}(j); end temp20; for ji1:1:n temp2temp2A(i,j)*x{k-1}(j); end x{k}(i)(b(i)-temp1-temp2)/A(i,i); end if (k200000) break; end end fprintf(The iteration k%d\n,k-1); disp(The solution is); disp(x{k}); end SOR.m function [x,k]SOR(A,b,x_ini,accuracy,x_true,w) % input:  A—Left Matrix %         b—Right Matrix %         x_ini—initial value %         accuracy—calculation precision between solution and true value %         x_true—true value %         w—relaxation factor % output: x—solution %         k—iteration-1 nsize(A,1); uint16 k; k1; x{1}x_ini; while(norm(x_true-x{k},Inf)accuracy) kk1;    %disp(k-1); for i1:1:n temp10; if(i1) for j1:1:i-1 temp1temp1A(i,j)*x{k}(j); end end temp20; for ji:1:n temp2temp2A(i,j)*x{k-1}(j); end x{k}(i)x{k-1}(i)w*(b(i)-temp1-temp2)/A(i,i); end if (k200000) break; end     end fprintf(The iteration k%d\n,k-1); disp(The solution is); disp(x{k}); end MATLAB运行结果为 Jacobi The dimension is 6 The iteration k199999 The solution is Inf   Inf   Inf  Inf   Inf   Inf The dimension is 8 The iteration k199999 The solution is Inf   Inf   Inf  Inf   Inf   Inf  Inf   Inf The dimension is 10 The iteration k199999 The solution is Inf   Inf   Inf  Inf   Inf   Inf  Inf   Inf   Inf  Inf SOR SOR w1 The dimension is 6 The iteration k14508 The solution is 0.9999    1.0016    0.9957   0.9994    1.0100    0.9933 The dimension is 8 The iteration k42694 The solution is 1.0001    0.9984    1.0076   0.9900    0.9971    1.0073   1.0068    0.9926 The dimension is 10 The iteration k25508 The solution is 1.0001    0.9980    1.0065   0.9985    0.9912    0.9970   1.0057    1.0091    1.0039   0.9900 SOR w1.25 The dimension is 6 The iteration k82840 The solution is 1.0000    0.9995    1.0036   0.9908    1.0100    0.9961 The dimension is 8 The iteration k50752 The solution is 1.0001    0.9984    1.0073   0.9900    0.9983    1.0064   1.0060    0.9934 The dimension is 10 The iteration k26267 The solution is 1.0001    0.9983    1.0048   1.0012    0.9900    0.9971   1.0053    1.0087    1.0038   0.9906 SOR w1.5 The dimension is 6 The iteration k174587 The solution is 1.0000    0.9994    1.0036   0.9908    1.0100    0.9961 The dimension is 8 The iteration k52211 The solution is 1.0001    0.9985    1.0071   0.9900    0.9996    1.0049   1.0059    0.9939 The dimension is 10 The iteration k199999 The solution is 1.0000    1.0007    0.9954   1.0113    0.9909    0.9986   0.9993    1.0049    1.0026   0.9962 运行结果分析 用雅克比迭代法进行线性方程系数矩阵为希尔伯特矩阵的求解解是发散的最终趋于无穷大。 用SOR迭代法进行线性方程系数矩阵为希尔伯特矩阵的求解解是收敛的且收敛速度与矩阵的大小有关但不是单调性的正相关或者负相关关系。
http://www.dnsts.com.cn/news/237712.html

相关文章:

  • 网站建设的条件分析外包建设网站
  • 网站建设求职信息网页设计与制作教程上机实训
  • 织梦手机网站有广告重庆智能网站建设价格
  • 网站设计ui沈阳 网站开发
  • 优化大师官方网站百度关键词优化快速排名软件
  • 杭州品牌网站制作公司网站的服务费做哪个科目
  • 三亚制作网站wordpress站群管理破解版
  • 销售渠道建设网站seo全称是什么意思
  • 房产网站栏目建设施工企业管理制度完整版
  • 怎么做公司销售网站商城app开发要多少钱
  • 广州建立网站的公司网站wordpress自适应设置宽度
  • 西安企业网站制作濮阳大濮网联系电话
  • 都匀网站建设wordpress做企业官网好不好
  • 公司网站定制开发南平网站怎么做seo
  • 网站定制解决方案织梦音乐网站模板
  • 安徽网站开发公司可喜安cms系统
  • 2018一级a做爰片免费网站网站开发最新架构
  • 福田建网站公司站长工具高清吗
  • 中国风html5网站模板免费下载网站建设可以抵扣吗
  • 代刷网站推广链接免费wordpress自己做主题
  • 旅游电子商务网站开发制作山东省德州禹城住房建设厅网站
  • 给公司做网站这个工作怎么样南京进出口贸易公司排名
  • 做网站的步骤视频网站关键词不收录
  • 郑州网站建设的软件自己做网站多少钱
  • 十大设计创意产品网站合肥网站建设维护
  • 网站建设目的功能高州网站建设
  • 做优化网站注意什么优秀茶叶网站设计
  • 甜品店网站建设ip设计
  • 网站上面关于我们要怎么填写简诉网站建设小组的五类成员
  • 肇庆网站开发哪家专业wordpress选什么配置的服务器