-
Notifications
You must be signed in to change notification settings - Fork 12
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
atol
and rtol
in isapprox
#122
Conversation
Codecov ReportBase: 86.09% // Head: 86.10% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #122 +/- ##
=======================================
Coverage 86.09% 86.10%
=======================================
Files 31 31
Lines 2496 2497 +1
=======================================
+ Hits 2149 2150 +1
Misses 347 347
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Throwing an error when comparing open and closed domains seems like a sensible thing to do. Type-piracy aside, I think we should update DomainSets accordingly. |
Removing this method from |
Sure, we can make version 0.6. I think @dlfivefifty is looking at this issue in #123 so I won't touch anything. |
Perfect. I would suggest making a Edit: Sorry, it seems the method is not overwritten after all. Only the |
Note this is now in IntervalSets.jl: JuliaMath/IntervalSets.jl#125 I think throwing an error makes no sense; see my PR JuliaMath/IntervalSets.jl#129 |
Meanwhile, that definition seems to have disappeared. I have also removed the tests for approximate equality of intervals, since that is defined and tested in IntervalSets. We still have to implement/improve isapprox more generally for domains. |
This adds
atol
andrtol
parameters to theisapprox
defined here. This method is committing type-piracy here (and perhaps harms pre-compilation, as it is overwriting the other method), so perhaps this should be removed in a future breaking version. The breakage comes from the fact that theisapprox
defined inIntervalSets
throws an error when comparing closed and open intervals, whereas this version doesn't.