René's URL Explorer Experiment


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 Neumai...

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

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ce584723-64d4-ce75-f611-deb5a9307be9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD348:3B507F:D76492:129F3A3:696A8E3C
html-safe-nonce2882b9a1de6f4d26df2af2a8da9d3e46b9a28bc4ee1e6eba732043a979f2e6d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzQ4OjNCNTA3RjpENzY0OTI6MTI5RjNBMzo2OTZBOEUzQyIsInZpc2l0b3JfaWQiOiI1OTY5NzIyNjYwMjA5OTg3MTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7eb4910d180c6ae1409acf5bec53b76ff858b94c4dd054c9eba352472a0cfd3b
hovercard-subject-tagpull_request:469308668
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/21916/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/85693959d25214909f82e1e9b93f512c506c8ecdaa99716e48ddb62fa9561db6/python/cpython/pull/21916
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85693959d25214909f82e1e9b93f512c506c8ecdaa99716e48ddb62fa9561db6/python/cpython/pull/21916
og:image:altDraft 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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerhettinger
hostnamegithub.com
expected-hostnamegithub.com
Noned2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec1dbca8981c5e3d6a69bce2f1d289e732b86241d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/21916#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F21916
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F21916
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/21916
Reloadhttps://github.com/python/cpython/pull/21916
Reloadhttps://github.com/python/cpython/pull/21916
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/21916
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/21916
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/21916#issue-comment-box
rhettingerhttps://github.com/rhettinger
python:masterhttps://github.com/python/cpython/tree/master
rhettinger:hypot_zerohttps://github.com/rhettinger/cpython/tree/hypot_zero
bpo-41513: More accurate hypot() https://github.com/python/cpython/pull/21916#top
rhettingerhttps://github.com/rhettinger
python:masterhttps://github.com/python/cpython/tree/master
rhettinger:hypot_zerohttps://github.com/rhettinger/cpython/tree/hypot_zero
Conversation 10 https://github.com/python/cpython/pull/21916
Commits 12 https://github.com/python/cpython/pull/21916/commits
Checks 0 https://github.com/python/cpython/pull/21916/checks
Files changed https://github.com/python/cpython/pull/21916/files
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
Aug 18, 2020https://github.com/python/cpython/pull/21916#issue-680820395
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://bugs.python.org/issue41513https://bugs.python.org/issue41513
Please reload this pagehttps://github.com/python/cpython/pull/21916
rhettingerhttps://github.com/rhettinger
August 18, 2020 00:31https://github.com/python/cpython/pull/21916#commits-pushed-b0b50f9
https://github.com/rhettinger
First draft. Tests fail.https://github.com/python/cpython/pull/21916/commits/b0b50f9240802a5d5e8735415ac983af445a6850
b0b50f9https://github.com/python/cpython/pull/21916/commits/b0b50f9240802a5d5e8735415ac983af445a6850
https://github.com/rhettinger
Was squaring twicehttps://github.com/python/cpython/pull/21916/commits/3447a73577255fb8a2011e3848e5f39ed06155b0
3447a73https://github.com/python/cpython/pull/21916/commits/3447a73577255fb8a2011e3848e5f39ed06155b0
https://github.com/rhettinger
Divided by scale too earlyhttps://github.com/python/cpython/pull/21916/commits/b8ba65d3ae6cd0413160b8a55562781d4fd02e90
b8ba65dhttps://github.com/python/cpython/pull/21916/commits/b8ba65d3ae6cd0413160b8a55562781d4fd02e90
https://github.com/rhettinger
Fix order of application. Add more assertionshttps://github.com/python/cpython/pull/21916/commits/df0109f9e2a4619add5635f617da908798e41d51
df0109fhttps://github.com/python/cpython/pull/21916/commits/df0109f9e2a4619add5635f617da908798e41d51
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Aug 18, 2020https://github.com/python/cpython/pull/21916#event-3665306046
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
mdickinsonhttps://github.com/mdickinson
tim-onehttps://github.com/tim-one
August 18, 2020 08:54https://github.com/python/cpython/pull/21916#event-3665306068
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Aug 18, 2020https://github.com/python/cpython/pull/21916#event-3665306270
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 18, 2020https://github.com/python/cpython/pull/21916#event-3665306453
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 18, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-469665969
View reviewed changes https://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 18, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-469666872
View reviewed changes https://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 18, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-469668256
View reviewed changes https://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 18, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-469668554
View reviewed changes https://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/df0109f9e2a4619add5635f617da908798e41d51#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
rhettingerhttps://github.com/rhettinger
August 23, 2020 02:02https://github.com/python/cpython/pull/21916#commits-pushed-1fd8643
https://github.com/rhettinger
Start to refine assertionshttps://github.com/python/cpython/pull/21916/commits/1fd8643a097412cf4ec11614b69d8326f22c6693
1fd8643https://github.com/python/cpython/pull/21916/commits/1fd8643a097412cf4ec11614b69d8326f22c6693
https://github.com/rhettinger
The actual summation invariant is expressed in magnitudeshttps://github.com/python/cpython/pull/21916/commits/26ba86e3c99cf8799398a4e35880fe62bd4d24aa
26ba86ehttps://github.com/python/cpython/pull/21916/commits/26ba86e3c99cf8799398a4e35880fe62bd4d24aa
https://github.com/rhettinger
Explain the algorithm in the comments. Provide references. Improve va…https://github.com/python/cpython/pull/21916/commits/ef0c4b00b43fdd21eb0e09bdfaa6f542167f98ad
ef0c4b0https://github.com/python/cpython/pull/21916/commits/ef0c4b00b43fdd21eb0e09bdfaa6f542167f98ad
https://github.com/rhettinger
Add blurbhttps://github.com/python/cpython/pull/21916/commits/e17ca4cb2ffd96ebecc16c766a62e0286085ec8b
e17ca4chttps://github.com/python/cpython/pull/21916/commits/e17ca4cb2ffd96ebecc16c766a62e0286085ec8b
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Aug 23, 2020https://github.com/python/cpython/pull/21916#event-3683150523
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
tim-onehttps://github.com/tim-one
Aug 23, 2020https://github.com/python/cpython/pull/21916#event-3683150664
rhettingerhttps://github.com/rhettinger
August 23, 2020 14:48https://github.com/python/cpython/pull/21916#commits-pushed-c013437
https://github.com/rhettinger
Move the splitting constant into the function that uses it.https://github.com/python/cpython/pull/21916/commits/c0134374d1f705713aaaf3ea00a56b89227af2d4
c013437https://github.com/python/cpython/pull/21916/commits/c0134374d1f705713aaaf3ea00a56b89227af2d4
https://github.com/rhettinger
Drop the requirement that input elements are non-negative.https://github.com/python/cpython/pull/21916/commits/f2c325427da850c27b1e7f2739c62d768091e2c6
f2c3254https://github.com/python/cpython/pull/21916/commits/f2c325427da850c27b1e7f2739c62d768091e2c6
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 24, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-473069085
View reviewed changes https://github.com/python/cpython/pull/21916/files/f2c325427da850c27b1e7f2739c62d768091e2c6
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/f2c325427da850c27b1e7f2739c62d768091e2c6#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Aug 24, 2020 https://github.com/python/cpython/pull/21916#pullrequestreview-473071712
View reviewed changes https://github.com/python/cpython/pull/21916/files/f2c325427da850c27b1e7f2739c62d768091e2c6
Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/files/f2c325427da850c27b1e7f2739c62d768091e2c6#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
Please reload this pagehttps://github.com/python/cpython/pull/21916
rhettingerhttps://github.com/rhettinger
August 23, 2020 18:47https://github.com/python/cpython/pull/21916#commits-pushed-106bec2
https://github.com/rhettinger
https://github.com/tim-one
Update Modules/mathmodule.chttps://github.com/python/cpython/pull/21916/commits/106bec215d3fdf673747edd480267eabee8a7f60
106bec2https://github.com/python/cpython/pull/21916/commits/106bec215d3fdf673747edd480267eabee8a7f60
https://github.com/rhettinger
Keep the summation order consistent between sectionshttps://github.com/python/cpython/pull/21916/commits/39667b53b069c110dbbc258aa3c7f7daaef9c42d
39667b5https://github.com/python/cpython/pull/21916/commits/39667b53b069c110dbbc258aa3c7f7daaef9c42d
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
Aug 24, 2020https://github.com/python/cpython/pull/21916#event-3687607099
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
8e19c8bhttps://github.com/python/cpython/commit/8e19c8be87017f6bef8e4c936b1e6ddacb558ad2
Aug 25, 2020https://github.com/python/cpython/pull/21916#event-3687718789
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 25, 2020https://github.com/python/cpython/pull/21916#event-3687718869
xzy3https://github.com/xzy3
Oct 18, 2020 https://github.com/python/cpython/pull/21916#ref-commit-198284b
https://github.com/rhettinger
bpo-41513: More accurate hypot() (https://github.com/xzy3/cpython/commit/198284b1a724c13cd4d58e79ba84e01d52061dd2
pythonGH-21916https://github.com/python/cpython/pull/21916
)https://github.com/xzy3/cpython/commit/198284b1a724c13cd4d58e79ba84e01d52061dd2
198284bhttps://github.com/xzy3/cpython/commit/198284b1a724c13cd4d58e79ba84e01d52061dd2
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F21916
https://github.com/tim-one
tim-one https://github.com/tim-one
https://github.com/python/cpython/pull/21916/files/f2c325427da850c27b1e7f2739c62d768091e2c6
https://github.com/mdickinson
mdickinson https://github.com/mdickinson
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
https://github.com/tim-one
tim-one https://github.com/tim-one
Please reload this pagehttps://github.com/python/cpython/pull/21916
https://github.com/rhettinger
https://github.com/tim-one
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.