Dichotomy.bisectionMethod
bisection(f, (a, b); [tol=eps()])

Finds root of equation f(x) = 0 on a < x < b.

Method works only if f(a) * f(b) < 0.

Examples

julia> bisection(sin, (2, 4))
3.141592653589793
Dichotomy.goldensectionMethod
goldensection(f, (a, b); [tol=eps()])

Finds argmin of function f(x) on a < x < b.

Examples

julia> goldensection(x-> (x-2)^2, (-4, 4))
2.0