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.
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 useinfinside 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.0to0.0when constructing the interval instead of directly "correctly" normalising lower and upper bound. Is that having-0.0around 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 <kolaru@hotmail.com>
|
(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.