-
Notifications
You must be signed in to change notification settings - Fork 32
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
#1316 - Set difference between intervals #1330
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not looked at the code yet. First let us decide on the output type.
Co-Authored-By: mforets <[email protected]>
Co-Authored-By: mforets <[email protected]>
I am thinking about using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see how your function computes the difference. At least give an explanation in the docs, but I have the feeling that it is just wrong.
Thanks for raising the issue. Note that julia> I1 = Interval(0, 1)
julia> I2 = Interval(2, 4)
julia> I1 - I2
Interval{Float64,IntervalArithmetic.Interval{Float64}}([-4, -1])
julia> I1.dat - I2.dat # the above implemented this rule
[-4, -1] On the other hand, it is also true that backslash is used for division (although we don't offer this method in the julia> I1.dat \ I2.dat
[2, ∞] So i would suggest that we just keep |
True! So let us keep |
I've added an |
Co-Authored-By: mforets <[email protected]>
Co-Authored-By: mforets <[email protected]>
Alright, thanks for your review. I'm adding some docs and moving Keeping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider squashing.
Squashed and merged, thanks a lot for the review! |
Closes #1316.