function q6_A(f,xi,h,emax) fi=f; y=x; hi=h; emaxi=emax; e=100; func=inline(f); xiii=func(xi); n=1; g=xi+h; true=func(g); while(e>emax) func=feval('fdiff',inline(f)); f=char(func); xii=xiii+(func(xi)*h^n/factorial(n)); e = abs(100*(true-xii)/true); n=n+1; xiii=xii; end v=[fi, y, hi, emaxi, e, xii, n]; disp(v)