Skip to content

Fix wrong converge check in VpSqrt #353

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

tompng
Copy link
Member

@tompng tompng commented Jun 13, 2025

Fix #338

x/y == y does not mean y converged to sqrt(x) if the precision of x/y is not high enough.
Perhaps there is a more complicated way to fix this convergence check, but #323 or #343 is better than doing it.

@tompng tompng merged commit 95bf47a into ruby:master Jun 13, 2025
123 of 124 checks passed
@tompng tompng deleted the fix_sqrt_precision_bug branch June 13, 2025 13:31
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.

Wrong sqrt calculation
1 participant