Matlab线性方程组的迭代解法GaussSeidel迭代法.docx

上传人:牧羊曲112 文档编号:3161306 上传时间:2023-03-11 格式:DOCX 页数:1 大小:36.32KB
返回 下载 相关 举报
Matlab线性方程组的迭代解法GaussSeidel迭代法.docx_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

《Matlab线性方程组的迭代解法GaussSeidel迭代法.docx》由会员分享,可在线阅读,更多相关《Matlab线性方程组的迭代解法GaussSeidel迭代法.docx(1页珍藏版)》请在三一办公上搜索。

Matlab线性方程组的迭代解法GaussSeidel迭代法Matlab线性方程组的迭代解法Gauss-Seidel迭代法实验报告 1.熟悉Gauss-Seidel迭代法,并编写Matlab程序 function y,n=gauss_seidel(A,b,x0,eps) %gauss seidel iterative method to solve Ax=b if nargin=3 eps=1e-6; elseif nargin=eps x0=y; y=G*x0+f; n=n+1; end 2. 用Gauss-Seidel迭代法求解线性方程组。 输入: A=4 3 0;3 3 -1;0 -1 4; b=24;30;-24; x0=0;0;0; y,n=gauss_seidel(A,b,x0) 输出: y = 6 -2 -7 n = 4

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号