-
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
Ensure correct rounding for irrationals #617
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #617 +/- ##
==========================================
+ Coverage 84.07% 84.33% +0.26%
==========================================
Files 24 25 +1
Lines 2091 2088 -3
==========================================
+ Hits 1758 1761 +3
+ Misses 333 327 -6 ☔ View full report in Codecov by Sentry. |
I took a quick look at the code and didn't spot anything odd. I don't understand the distinction between You could also support It would of course be possible to support more irrationals by simply evaluating them with interval arithmetic. They would in general not be correctly (but faithfully) rounded in those cases though. I don't know what guarantees you give on correct rounding outside of the standard though (and the standard clearly doesn't covers these types of irrationals). |
Oh just a way to fix method ambiguities when we introduce
Indeed, same for |
For I think non-tight enclosures would be perfectly fine for irrationals. Personally I don't care much for correct rounding (faithful rounding is of course necessary though!), you lose it after doing two operations anyway. In that case I think it would make sense to also implement |
Sounds good, I'll find time to make the changes. Thx for looking over this PR btw! |
Fixes #616.