Skip to content

Graceful handling of infinity #161

@dpsanders

Description

@dpsanders

Currently the following hangs in an infinite calculation:

julia> using IntervalArithmetic, IntervalRootFinding

julia> roots(x -> x^2 - x, -Inf..Inf)

since it cannot prove that it can exclude the regions at infinity.

We should explicitly check for infinite intervals and stop bisecting at some point, say when the result is above 1e200.

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