Skip to content

Simple example returns empty root #252

Description

@Kolaru

The last root in the following looks wrong:

julia> using IntervalRootFinding

julia> roots(x -> 1/x, interval(-Inf, Inf))
4-element Vector{Root{Interval{Float64}}}:
 Root([-3.35274e-8, 1.94455e-8]_dac, :unknown)
 └ Not converged: region size smaller than the tolerance
 Root((-∞, -1.79769e+308]_dac, :unknown)
 └ Not converged: reached maximal number of iterations
 Root([1.79769e+308, ∞)_dac, :unknown)
 └ Not converged: reached maximal number of iterations
 Root(∅_trv, :unknown)
 └ Not converged: reached maximal number of iterations

It is not incorrect to say that an empty interval contains no root, but unhelpful and a bit concerning: all empty intervals should be properly removed before being returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions