Matlab线性方程组的迭代解法Gauss-Seidel迭代法

上传人:206****923 文档编号:91849654 上传时间:2019-07-02 格式:DOC 页数:1 大小:12.02KB
返回 下载 相关 举报
Matlab线性方程组的迭代解法Gauss-Seidel迭代法_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

《Matlab线性方程组的迭代解法Gauss-Seidel迭代法》由会员分享,可在线阅读,更多相关《Matlab线性方程组的迭代解法Gauss-Seidel迭代法(1页珍藏版)》请在金锄头文库上搜索。

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;end2.用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 -7n = 4

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号