Public API
Root Finding
IntervalArithmeticPlayground.rootfinding_with_bisection Function
julia
rootfinding_with_bisection(f, dom=entireinterval(Float64); maxiter=16)Find the roots of a function dom using the bisection method. The function returns a list of intervals that may contain the roots.
Arguments
f: The function for which to find roots.dom: The interval in which to search for roots. The default is the entire real line.maxiter: The maximum number of iterations for refining the intervals.
Example
julia
sourceusing IntervalArithmeticPlayground
f(x) = x^3 - 2x^2 + x - 0.05
dom = interval(Float64, -10, 10)
roots = rootfinding_with_bisection(f, dom, maxiter=10)