This preview shows page 1. Sign up to view the full content.
Unformatted text preview: function Xs = SecantRoot(Fun,X1,X2,imax) X(1)=X1; X(2)=X2; for i = 3:imax X(i)=X2-(feval(Fun,X2)*(X1-X2))/(feval(Fun,X1)-feval(Fun,X2)); X1=X2; X2=X(i); end Xs=X;...
View Full Document
This note was uploaded on 04/01/2011 for the course ECM 006 taught by Professor Higgins during the Spring '07 term at UC Davis.
- Spring '07