Skip to content

Fix near-underflows in ival-pow#109

Merged
pavpanchekha merged 2 commits intomainfrom
fix-105
Apr 10, 2025
Merged

Fix near-underflows in ival-pow#109
pavpanchekha merged 2 commits intomainfrom
fix-105

Conversation

@pavpanchekha
Copy link
Contributor

@pavpanchekha pavpanchekha commented Apr 10, 2025

This PR fixes #105 and fixes #106; basically, there was an off by one because mpfr-exp is offset by 1 from the actual exponent.

@pavpanchekha pavpanchekha requested a review from AYadrov April 10, 2025 20:46
@pavpanchekha
Copy link
Contributor Author

I have now tested ival-pow on 200k random tests without issue.

(require "main.rkt"
"mpfr.rkt")
(provide ival-valid?
ival-refines?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, we do need it?
Doesn't matter much anyways

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's helpful to export it to debug cases like this, I figured I'd let it stay exported from test.rkt.

@pavpanchekha pavpanchekha merged commit 4e74d29 into main Apr 10, 2025
1 check passed
@pavpanchekha pavpanchekha deleted the fix-105 branch April 10, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One more issue in pow Another issue in pow

2 participants