-
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
Use inf, sup (or bounds) instead of .lo and .hi #531
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.0-dev #531 +/- ##
===========================================
+ Coverage 85.40% 85.44% +0.03%
===========================================
Files 34 34
Lines 1782 1814 +32
===========================================
+ Hits 1522 1550 +28
- Misses 260 264 +4
Continue to review full report at Codecov.
|
There are few instances left; by some reason, 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.
in general LGTM.
If I understand correctly the missing cases are
-
in trigonometric.jl,
@round(F, half_pi(F).lo, atan(ylo, xlo))
we cannot useinf
inside the round macro (at least without addinginf(a, RoundingMode)
but feels too pedantic -
bounds(x) = x.lo, sup(x)
the reason for this (which is I guess also the reason for always normalising-0.0
to0.0
when constructing the interval instead of directly "correctly" normalising lower and upper bound. Is that having-0.0
around leads some ambiguities errors inatan(y, x)
computation (returnsπ
instead of-π
or viceversa). Given that the current thing works and given how idiotic the whole -0.0 vs 0.0 issue is in the first place, I would say this is fine, since it works -
A couple of instances in the examples folder, but given those are probably outdated anyway I guess it doesn't matter
|
Co-authored-by: Benoît Richard <[email protected]>
(Forgot to push the last commit...) |
@lbenet I suggest we merge this and leave the pi vs -pi nuisance for a separate PR |
also because since #533 is built on top on this and hence it also incorporates all the |
I think the last commit includes the nuisances related to pi you mean. I agree: let's merge this, and afterwards I'll rebase #533 to 1.0-dev |
No description provided.