You are on page 1of 1

% R(1,1) = (b-a)*(f(a)/2+f(b)/2)

b=1;
a=0;
err=1;
R(1,1)=(b-a)*(0.5*f(a)+0.5*f(b)); %R(1,1) is the same notation as I(1)
%for a set number of iterations or a tolerance
while err>0.05

You might also like