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

Bug in power of large numbers #491

Closed
dpsanders opened this issue Sep 17, 2021 · 4 comments · Fixed by #567
Closed

Bug in power of large numbers #491

dpsanders opened this issue Sep 17, 2021 · 4 comments · Fixed by #567

Comments

@dpsanders
Copy link
Member

julia> x = -Inf..(-1e308)
[-∞, -9.99999e+307]

julia> x^3

This should not be empty.

@dpsanders
Copy link
Member Author

This only seems to happen on the dps/config branch?

@dpsanders
Copy link
Member Author

dpsanders commented Sep 17, 2021

This seems to be a bug in IntervalArithmetic.power_by_squaring:

julia> y = -1e308
-1.0e308

julia> IntervalArithmetic.power_by_squaring(y, 3, RoundUp)
-Inf

@lucaferranti
Copy link
Member

on master

julia> x = -Inf..(-1e308)
[-∞, -9.99999e+307]

julia> x^3
[-∞, -1.79769e+308]

@dpsanders
Copy link
Member Author

We should add a test for this in any case.

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

Successfully merging a pull request may close this issue.

3 participants