-
Notifications
You must be signed in to change notification settings - Fork 71
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
interval(-Inf)
should do the useful thing
#688
Comments
Our hands are tied by the standard on interval arithmetic on this. Indeed, the only current flavour supported by IntervalArithmetic.jl is the "set based flavour" which states that If I recall correctly (to check), what you want is the behaviour described by the "c-set flavour", which is not currently implemented. I am closing this issue as it is the desired result. Note, we could open an issue about implementing the "c-set flavour" (though we may lack the man power at the moment to tackle this). |
I would argue that I don't believe the standard says anything about this case? |
For this we have to look at the IEEE Standard for Floating-Point Arithmetic (IEEE Std 754-2019, page 48):
|
OK fair enough I guess, thanks! |
Is there a convenience function to make the interval I want?
…On Mon, Oct 14, 2024, 18:06 Olivier Hénot ***@***.***> wrote:
For this we have to look at the IEEE Standard for Floating-Point
Arithmetic (IEEE Std 754-2019, page 48):
The behavior of infinity in floating-point arithmetic is derived from the
limiting cases of real arithmetic
with operands of arbitrarily large magnitude, when such a limit exists.
Infinities shall be interpreted in the
affine sense, that is: $-\infty < \text{every finite number} <
+\infty$.
—
Reply to this email directly, view it on GitHub
<#688 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABO2TX4U4G2R3FQODMZMGLZ3RE6XAVCNFSM6AAAAABP5TZPYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJSGQ4DMNZYG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes julia> typemax(Interval{Float64})
[1.79769e+308, ∞)_dac
julia> typemin(Interval{Float64})
(-∞, -1.79769e+308]_dac |
IMO This should return
-Inf..(nextfloat(-Inf))
insteadThe text was updated successfully, but these errors were encountered: