[레포트] 수치해석 HW#7
- 최초 등록일
- 2019.07.03
- 최종 저작일
- 2019.07
- 9페이지/ MS 워드
- 가격 1,000원
목차
없음
본문내용
i) Code
function [x, ea, iter] = GaussSeidelR (A, b, lambda, es, maxit)
% GaussSeidelRelax: Gauss Seidel method with relaxation
% x = GaussSeidelRelax(A, b): Gauss Seidel with relaxation
% input:
% A = coefficient matrix
% b = right hand side vector
% lambda = relation factor (default = 1)
% es = stop criterion (default = 0.00001%)
% maxit = max iterations (default = 50)
% output:
% x = solution vector
% ea = maximum relative error (%)
% iter = number of iterations
if nargin < 2, error('at least 2 input arguments required'), end
참고 자료
없음