x = 1; maxn = 50; epsilon = 1; xval = x; n = 0; %start processing here while epsilon>=1e-5 & n<=maxn y = x - (e.^(-cos(x))); xval = [xval;y]; epsilon = abs(y-x); x=y; n=n+1; end % print root here x Solution x = 1; maxn = 50; epsilon = 1; xval = x; n = 0; %start processing here while epsilon>=1e-5 & n<=maxn y = x - (e.^(-cos(x))); xval = [xval;y]; epsilon = abs(y-x); x=y; n=n+1; end % print root here x.