Skip to content

bpo-41513: Improve hypot() accuracy with three separate accumulators #22032

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
Sep 2, 2020

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Aug 31, 2020

Using separate accumulators for each range of fractional values significantly improves accuracy for higher dimensions. See the analysis code at https://bugs.python.org/file49435/best_frac.py

https://bugs.python.org/issue41513

@rhettinger rhettinger closed this Aug 31, 2020
@rhettinger rhettinger deleted the hypot_three_frac branch August 31, 2020 18:52
@rhettinger rhettinger restored the hypot_three_frac branch September 2, 2020 04:31
@rhettinger rhettinger deleted the hypot_three_frac branch September 2, 2020 04:32
@rhettinger rhettinger restored the hypot_three_frac branch September 2, 2020 04:33
@rhettinger rhettinger reopened this Sep 2, 2020
@rhettinger rhettinger merged commit 5b24d15 into python:master Sep 2, 2020
@rhettinger rhettinger deleted the hypot_three_frac branch September 2, 2020 05:00
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants