matlab
DESCRIPTION
MatlabTRANSCRIPT
puntofijo.mfunction [k,p,errorabsoluto,P] = puntofijo(g,p0,tolerancia,iteracionesmaximas)P(1)= p0;for k=2:iteracionesmaximas P(k) =feval(g,P(k-1)); errorabsoluto=abs(P(k)-P(k-1)); errorrelativo=errorabsoluto/(abs(P(k))+eps); p=P(k); if (errorabsoluto