Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Modules
mathmodule.c
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 29, 2018
Improve commutativity of math.hypot() and math.dist() (GH-8984)
rhettinger
authored
21786f5
View commit details
Copy full SHA for 21786f5
View code at this point
Browse repository at this point
Commits on Aug 27, 2018
Fast path for exact floats in math.hypot() and math.dist() (GH-8949)
rhettinger
authored
74734f7
View commit details
Copy full SHA for 74734f7
View code at this point
Browse repository at this point
Commits on Aug 12, 2018
Minor code clean-up. Don't alter the input vector. Use variables instead. GH-8748
rhettinger
authored
a47f394
View commit details
Copy full SHA for a47f394
View code at this point
Browse repository at this point
Add more tests and assertions for math.hypot() and math.dist() (GH-8747)
rhettinger
authored
0041459
View commit details
Copy full SHA for 0041459
View code at this point
Browse repository at this point
Factor-out common code. Also, optimize common cases by preallocating space on the stack. GH-8738
Show description for c630e10
rhettinger
authored
c630e10
View commit details
Copy full SHA for c630e10
View code at this point
Browse repository at this point
Commits on Aug 11, 2018
Replace straight addition with Kahan summation and move max to the end (GH-8727)
rhettinger
authored
1399074
View commit details
Copy full SHA for 1399074
View code at this point
Browse repository at this point
Commits on Jul 31, 2018
bpo-33089: Add math.dist() for computing the Euclidean distance between two points (GH-8561)
rhettinger
authored
9c18b1a
View commit details
Copy full SHA for 9c18b1a
View code at this point
Browse repository at this point
Commits on Jul 28, 2018
bpo-33089: Multidimensional math.hypot() (GH-8474)
rhettinger
authored
c6dabe3
View commit details
Copy full SHA for c6dabe3
View code at this point
Browse repository at this point
Commits on Sep 15, 2017
bpo-31338 (#3374)
Show description for b2e5794
warsaw
authored
b2e5794
View commit details
Copy full SHA for b2e5794
View code at this point
Browse repository at this point
Commits on Apr 5, 2017
bpo-29962: add math.remainder (#950)
Show description for a0ce375
mdickinson
authored
a0ce375
View commit details
Copy full SHA for a0ce375
View code at this point
Browse repository at this point
Commits on Mar 30, 2017
bpo-29946: Fix "sqrtpi defined but not used" (#908)
louisom
authored and
serhiy-storchaka
committed
7a26464
View commit details
Copy full SHA for 7a26464
View code at this point
Browse repository at this point
Commits on Mar 12, 2017
bpo-26121: Revert to using the own implementations of lgamma and gamma on all platforms. (#637)
serhiy-storchaka
authored
4125e5c
View commit details
Copy full SHA for 4125e5c
View code at this point
Browse repository at this point
Commits on Mar 11, 2017
bpo-26121: Use C library implementation for math functions: (#515)
Show description for 97553fd
serhiy-storchaka
authored and
mdickinson
committed
97553fd
View commit details
Copy full SHA for 97553fd
View code at this point
Browse repository at this point
Commits on Jan 21, 2017
Issue #29282: Backed out changeset b33012ef1417
mdickinson
committed
5e65cd3
View commit details
Copy full SHA for 5e65cd3
View code at this point
Browse repository at this point
Issue #29282: add fused multiply-add function, math.fma.
mdickinson
committed
d1b230e
View commit details
Copy full SHA for d1b230e
View code at this point
Browse repository at this point
Commits on Jan 19, 2017
Issue #20186: Converted the math module to Argument Clinic.
Show description for c9ea933
serhiy-storchaka
committed
c9ea933
View commit details
Copy full SHA for c9ea933
View code at this point
Browse repository at this point
Commits on Dec 6, 2016
Use _PyObject_CallNoArg()
Show description for f17c3de
vstinner
committed
f17c3de
View commit details
Copy full SHA for f17c3de
View code at this point
Browse repository at this point
Commits on Dec 4, 2016
Backed out changeset b9c9691c72c5
Show description for de4ae3d
vstinner
committed
de4ae3d
View commit details
Copy full SHA for de4ae3d
View code at this point
Browse repository at this point
Commits on Dec 1, 2016
Replace PyObject_CallFunctionObjArgs() with fastcall
Show description for 27580c1
vstinner
committed
27580c1
View commit details
Copy full SHA for 27580c1
View code at this point
Browse repository at this point
Commits on Aug 30, 2016
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
rhettinger
committed
15f44ab
View commit details
Copy full SHA for 15f44ab
View code at this point
Browse repository at this point
Commits on Aug 15, 2016
Issue #12345: Add mathemathcal constant tau to math and cmath.
Show description for 0a891d7
Guido van Rossum
committed
0a891d7
View commit details
Copy full SHA for 0a891d7
View code at this point
Browse repository at this point
Commits on May 8, 2016
Issue #26512: Merge rounding doc from 3.5
vadmium
committed
18933ed
View commit details
Copy full SHA for 18933ed
View code at this point
Browse repository at this point
Issue #26512: Clarify Integral; tidy up table of rounding functions
Show description for 129fe04
vadmium
committed
129fe04
View commit details
Copy full SHA for 129fe04
View code at this point
Browse repository at this point
Commits on May 1, 2016
Issue #26898: Fix typo in math.isclose() docstring
Show description for a257062
berkerpeksag
committed
a257062
View commit details
Copy full SHA for a257062
View code at this point
Browse repository at this point
Issue #26898: Fix typo in math.isclose() docstring
Show description for d6e6f8b
berkerpeksag
committed
d6e6f8b
View commit details
Copy full SHA for d6e6f8b
View code at this point
Browse repository at this point
Commits on Jan 15, 2016
Merge for issue #26114
brettcannon
committed
2f1a0b6
View commit details
Copy full SHA for 2f1a0b6
View code at this point
Browse repository at this point
Issue #26114: Remove a reference to 'Numerical Recipes'.
Show description for 45adb31
brettcannon
committed
45adb31
View commit details
Copy full SHA for 45adb31
View code at this point
Browse repository at this point
Commits on Dec 25, 2015
Issue #25923: Added more const qualifiers to signatures of static and private functions.
serhiy-storchaka
committed
ef1585e
View commit details
Copy full SHA for ef1585e
View code at this point
Browse repository at this point
Commits on May 31, 2015
Issue #19543: Implementation of isclose as per PEP 485
Show description for d5519ed
taleinat
committed
d5519ed
View commit details
Copy full SHA for d5519ed
View code at this point
Browse repository at this point
Commits on May 12, 2015
Issue #22486: Added the math.gcd() function. The fractions.gcd() function now is
Show description for 48e47aa
serhiy-storchaka
committed
48e47aa
View commit details
Copy full SHA for 48e47aa
View code at this point
Browse repository at this point
Commits on Mar 12, 2015
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Show description for c2ccce7
serhiy-storchaka
committed
c2ccce7
View commit details
Copy full SHA for c2ccce7
View code at this point
Browse repository at this point
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Show description for a60c2fe
serhiy-storchaka
committed
a60c2fe
View commit details
Copy full SHA for a60c2fe
View code at this point
Browse repository at this point
Commits on Jan 11, 2015
Issue #21092: Merge from 3.4.
mdickinson
committed
cc8617b
View commit details
Copy full SHA for cc8617b
View code at this point
Browse repository at this point
Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse hyperbolic sine' (etc.). Remove meaningless reference to radians.
mdickinson
committed
dfe0b23
View commit details
Copy full SHA for dfe0b23
View code at this point
Browse repository at this point
Issue #23185: add math.inf and math.nan constants.
mdickinson
committed
a5d0c7c
View commit details
Copy full SHA for a5d0c7c
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.