octave
Matlab's Jacobi Method
You need to write the necessary code instead of comments. I'm not strong in Matlab, can someone help?)
function JacobiRo ... );
k=k+1;
endwhile
k
Lamda=A;
endfunction
function s=sign(x)
if x<0
s=-1;
else
s=1;
endif
endfunction