clc; clear; function y=f(x) y=(0.2+25*x-200*x^2+675*x^3-900*x^4+400*x^5) endfunction a=0; b=0.8; tval=1.640533; n=4; h=(b-a)/n; fa=f(a); fb=f(b); j=a+h; s=0; count=1; while j