esta logica esta e hecha para el programa de matlab y es el metodo de jacobi y no se como ingresarla a mi calculadora por favor ayudeme :)
function jacobi(A,b,v,u)
A=input('ingrese la matriz A=')
b=input('ingrese el vector b=');
v=input('punto inicial =');
u=input('exponente de la tolerancia =');
[m n]=size(A);
x=zeros(n,15);
x(:,1)=v;
for k=1:15
iteracion=k-1
for i=1:n
s=0;
for j=1:n
if j~=i
s=s+A(i,j)*x(j,k);
end
end
x(i,k+1)=(b(i)-s)/A(i,i);
end
if k>1
norma=norm(x(:,k)-x(:,k-1),inf)
fprintf('%12.10f
',x(:,k))
fprintf('
')
if norm(x(:,k)-x(:,k-1),inf)<10^-u
'COMO LA NORMA ES MENOR QUE LA TOLERANCIA AHI TERMINA'
break
end
'COMO LA NORMA ES MAYOR QUE LA TOLERANCIA ENTONCES SEGUIMOS'
end
end