function Err = Swrapper(f,Miter) % this function takes a function 'f' % and a vector representing the % maximum iterations to run the % secant algorithm LEN = length(Miter); for i = 1:LEN [x, y, err, iter] = secant(f,1,3,10^(-14),10^(-12),Miter(i)); Err(i) = err; end