Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graceful handling of infinity #161

Open
dpsanders opened this issue Jan 22, 2021 · 1 comment
Open

Graceful handling of infinity #161

dpsanders opened this issue Jan 22, 2021 · 1 comment

Comments

@dpsanders
Copy link
Member

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.

@KronosTheLate
Copy link

I don't have anything to contribute with in terms of solutions, but as a user, being able to check from -Inf to Inf is what I actually want to do most of the time, and so this would be a great feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants