jacobi, gauss-seidel, and SOR
JACOBI
% it there any bug?? who knows...
function [ x ] = jacobi()
%A = [8,-3,2;4,11,-1;6,3,12];
%b = [20,33,36];
A = [0.8 -0.4 0; -0.4 0.8 -0.4; 0 -0.4 0.8];
b = [41; 25; 105];
error_tolerance =
原创
2014-12-04 23:56:47 ·
693 阅读 ·
0 评论