function [xn,erro,k]=mis(g,x0,tol,maxiter) k=1 erro(1)=tol+1 while erro>tol & k