function x=bisection(a,b,f) N=100; //define max. number of iterations PE=10^-4 //define tolerance if (f(a)*f(b) > 0) then error('no root possible f(a)*f(b) > 0') // checking if the decided range is containing a root abort; end; if(abs(f(a))