function prikladJacobiVersBlockJacobi()

prec = 1e-6;

% N = [];
% K = [];
% 
% for i=3:30
i = 10;
    h = 1/i;
    [A,b] = priklad(h);
    
    n = length(b);
    
    u = A\b;

    n = length(b);
    u0 = zeros(n,1);

    [u,k] = Jacobi(A,b,u0,prec,10000);
    k
    I1 = 1:floor(n/2);
    I2 = floor(n/2)+1:n;
    [u,k] = BlockJacobi(A,b,u0,prec,10000,I1,I2);
    k

%     [n,k]
%     N = [ N , n ];
%     K = [ K , k ];
% end
%
% plot(N,K)
