Thank you Doctor saab. Your MATLAB and numerical videos are very helpful. However the function is discontinuous at a point and if we take a as -10 the bisection method fails in MATLAB.
@@DrHarishGarg i tried it so many times there is a yellow/orange line in the HG I cannoy run the whole thing, I also try in Regula Falsi still same error :(
Well there is no error on this HG... Its just a suggestion... You can run this file... It is perfect.... But if you still want to remove this, write HG = zeros(itermax,6) after line number 10. And update line 12 as HG(1,:) = [iter a b x0 f(x0) err] And line 25 as HG(iter,:)=[iter+1 a b x0 f(x0) err]