matlab

Download matlab

If you can't read please download the document

Upload: elvisvelasqueespinoza

Post on 09-Dec-2015

3 views

Category:

Documents


0 download

DESCRIPTION

Matlab

TRANSCRIPT

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