//Example 5.28 //Aitkens Method //Page no. 199 clc;clear;close; deff('x=f(x)','x=20/(x^2+2*x+10)') printf('n\tx0\t\tx1\t\tx2\t\tx3\t\ty\t\tdx0\n') printf('-----------------------------------------------------------------------------------------------------\n') x0=1;e=0.0001 for i=1:3 x1=f(x0);x2=f(x1);x3=f(x2); y=x3-((x3-x2)^2)/(x3-2*x2+x1) dx0=y-x0; printf(' %i\t%.10f\t%.10f\t%.10f\t%.10f\t%.10f\t%.10f\n',i,x0,x1,x2,x3,y,dx0) x0=y; if abs(x0)