function x=fixed2(x0,e) x=log(cos(x0)+2) while abs(x-x0)>e x=log(cos(x0)+2); x0=x; endwhile