function x=fixpont(x,n) for i=1:n x=g(x); endfor