
clc
clear

f = @(x) cos(x)-x
a     = 0
b     = pi
delta = 10^(-3)
kmax  = 20
[Xkoz,err] = bisection(f,a,b,delta,kmax)

input('Folytatás ENTER-rel');

f = @(x) cos(x)-x
a     = 0
b     = pi
delta = 10^(-6)
kmax  = 20
[Xkoz,err] = bisection(f,a,b,delta,kmax)

input('Folytatás ENTER-rel');

f = @(x) cos(x)-x
a     = pi
b     = 3*pi
delta = 10^(-3)
kmax  = 20
[Xkoz,err] = bisection(f,a,b,delta,kmax)