代码搜索:GaussSeidel
找到约 27 项符合「GaussSeidel」的源代码
代码结果 27
www.eeworm.com/read/270397/11039393
m gaussseidel.m
function [x,flag] = gaussseidel(A,b,x0,ep,maxit)
% 参数个数判断
if nargin
www.eeworm.com/read/466942/7023968
m gaussseidel.m
function [x,k] = SORGaussSeidel(A,b,x0,eps,MaxIter)
oldx = x0;
x = x0;
N = length(x0);
for k=1:MaxIter
for i=1:N
x(i) = (b(i) - sum(A(i,(1:i-1))*x(1:(i-1))) ...
- sum(A(i,
www.eeworm.com/read/433870/7905675
m gaussseidel.m
function x=GaussSeidel(A,b,es)
%A=coefficient matrix
%b=right hand side vector
%es=stop critartion
%maxit=max iterations
%output:
%x=solution vector
maxit=100;
lambda=0.5; %underrelaxation p
www.eeworm.com/read/433868/7905699
m gaussseidel.m
function x=GaussSeidel(A,b,es)
%A=coefficient matrix
%b=right hand side vector
%es=stop critartion
%maxit=max iterations
%output:
%x=solution vector
maxit=100;
lambda=0.5; %underrelaxation p
www.eeworm.com/read/328480/13025400
m gaussseidel.m
function x=GaussSeidel(A,b,x,N)
temp1=0;
temp2=0;
temp3=0;
temp4=0;
for k=1:N
for j=2:4
temp1=temp1+A(1,j)*x(j);
end
x(1)=(b(1)-temp1)/A(1,1);
temp1=0;
for j=3:4
www.eeworm.com/read/483185/6611051
m gaussseidel.m
function [x,n]=Gaussseidel(A,b,eps)
if nargin==2
eps=1e-5;
end
D=diag(diag(A));
L=-tril(A,-1);
U=-triu(A,1);
S=inv(D-L)*U;
f=inv(D-L)*b;
if max(abs(eig(S)))
www.eeworm.com/read/261023/11670103
m gaussseidel.m
function [x,k]=gaussmethod(A,b,x0,N,emg)
%A是线性方程组的左端矩阵
%B是右端向量
%x0是迭代初始值
%N表示迭代次数上限,
%emg表示控制精度
%用gauss-seidel迭代法求 线性方程
%K表示迭代次数
%x表示用迭代法求得的线性方程组的近似解
n=length(A);
x1=zeros(n,1);
x2=zeros(n
www.eeworm.com/read/217706/14953061
plg gaussseidel.plg
Build Log
--------------------Configuration: GaussSeidel - Win32 Debug--------------------
Command Lines
Creating temporary file "D:\DOCUME~1\3
www.eeworm.com/read/217706/14953062
dsw gaussseidel.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/217706/14953063
dsp gaussseidel.dsp
# Microsoft Developer Studio Project File - Name="GaussSeidel" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x8