% file bisecdemo.m
% Illustration der Bisektion-Methode f?r verschiedene Funktionen
clc
clear
format long

res = bisect(@sin,3,3.5,1.e-15)
pi
res/pi

pause

beta=0.2
bisect(@(x) mffunc(x,beta),0.1,1,1.e-15)

pause

test =@(x) 1/(x-2)
bisect(test,1,3,1e-15)
