Title: bpo-41513: More accurate hypot() by rhettinger · Pull Request #21916 · python/cpython · GitHub
Open Graph Title: bpo-41513: More accurate hypot() by rhettinger · Pull Request #21916 · python/cpython
X Title: bpo-41513: More accurate hypot() by rhettinger · Pull Request #21916 · python/cpython
Description: Draft PR for discussion. Algorithm combines: lossless scaling using a power-of-two scaling factor accurate squaring using Veltkamp-Dekker splitting accurate summation using a variant of the Neumaier algorithm differential correction of the square root calculation Together, these allow the algorithm to simulate 128-bit quad precision throughout. On my build, the speed slows 50-60%. I've tested with millions of inputs and not yet found a single 1-ulp error. It seems to always be correctly rounded. https://bugs.python.org/issue41513
Open Graph Description: Draft PR for discussion. Algorithm combines: lossless scaling using a power-of-two scaling factor accurate squaring using Veltkamp-Dekker splitting accurate summation using a variant of the Neumai...
X Description: Draft PR for discussion. Algorithm combines: lossless scaling using a power-of-two scaling factor accurate squaring using Veltkamp-Dekker splitting accurate summation using a variant of the Neumai...
Opengraph URL: https://github.com/python/cpython/pull/21916
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:af6ded20-45f9-48eb-808c-675ce844ec7a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D2F6:258BE8:9AA5C8:D0D672:696AB99C |
| html-safe-nonce | 6cdc8e048a702d092336316354b85e7a441bba3b9d14beb65749a8119a56f191 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY2OjI1OEJFODo5QUE1Qzg6RDBENjcyOjY5NkFCOTlDIiwidmlzaXRvcl9pZCI6IjUyNTkyNTc5NjYxOTg3MDA0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2360274b5aedbe64c30dca2105b7c1eb10ce7fc87ada6ca5ad0314a045dbed13 |
| hovercard-subject-tag | pull_request:469308668 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/21916/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | Draft PR for discussion. Algorithm combines: lossless scaling using a power-of-two scaling factor accurate squaring using Veltkamp-Dekker splitting accurate summation using a variant of the Neumai... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width