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
Developer articles
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
3.5
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 7, 2016
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
vadmium
committed
0be894b
View commit details
Copy full SHA for 0be894b
View code at this point
Browse repository at this point
Commits on May 8, 2016
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 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
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 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
Commits on Aug 17, 2014
Issue #22207: Fix "comparison between signed and unsigned integers" warning in
Show description for 049e509
vstinner
committed
049e509
View commit details
Copy full SHA for 049e509
View code at this point
Browse repository at this point
Commits on Apr 10, 2014
Issue #20539: Improve math.factorial error messages and types for large inputs.
Show description for 5990d28
mdickinson
committed
5990d28
View commit details
Copy full SHA for 5990d28
View code at this point
Browse repository at this point
Commits on Feb 16, 2014
#12211: remove paragraph about NaNs
akuchling
committed
3137885
View commit details
Copy full SHA for 3137885
View code at this point
Browse repository at this point
#12211: clarify math.copysign() documentation and docstring
akuchling
committed
8cb1ec3
View commit details
Copy full SHA for 8cb1ec3
View code at this point
Browse repository at this point
Commits on Aug 27, 2013
Issue #18783: Removed existing mentions of Python long type in docstrings,
Show description for 9594942
serhiy-storchaka
committed
9594942
View commit details
Copy full SHA for 9594942
View code at this point
Browse repository at this point
Commits on Oct 25, 2012
Issue #16305: Merge fix from 3.2.
mdickinson
committed
039e0cd
View commit details
Copy full SHA for 039e0cd
View code at this point
Browse repository at this point
Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and diagnosis.
mdickinson
committed
7646449
View commit details
Copy full SHA for 7646449
View code at this point
Browse repository at this point
Commits on Mar 13, 2012
merge 3.2
benjaminp
committed
7d74b70
View commit details
Copy full SHA for 7d74b70
View code at this point
Browse repository at this point
fix indentation
benjaminp
committed
2354a75
View commit details
Copy full SHA for 2354a75
View code at this point
Browse repository at this point
Commits on Jan 22, 2012
use the static identifier api for looking up special methods
Show description for ce79852
benjaminp
committed
ce79852
View commit details
Copy full SHA for ce79852
View code at this point
Browse repository at this point
Commits on Sep 28, 2011
Use the new Py_ARRAY_LENGTH macro
Victor Stinner
committed
6394188
View commit details
Copy full SHA for 6394188
View code at this point
Browse repository at this point
Commits on Sep 25, 2011
Return +-Py_HUGE_VAL for tgamma(+-0) instead of risking FP exceptions by computing 1.0 / 0.0.
mdickinson
committed
50203a6
View commit details
Copy full SHA for 50203a6
View code at this point
Browse repository at this point
Commits on May 9, 2011
Issue #11888: Use system log2() when available
Show description for 8f9f8d6
Victor Stinner
committed
8f9f8d6
View commit details
Copy full SHA for 8f9f8d6
View code at this point
Browse repository at this point
Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.
mdickinson
committed
83b8c0b
View commit details
Copy full SHA for 83b8c0b
View code at this point
Browse repository at this point
Fix cut-and-paste typo in comment: log10 -> log2.
mdickinson
committed
2344258
View commit details
Copy full SHA for 2344258
View code at this point
Browse repository at this point
Commits on May 8, 2011
Issue #11888: Add log2 function to math module. Patch written by Mark
Show description for fa0e3d5
Victor Stinner
committed
fa0e3d5
View commit details
Copy full SHA for fa0e3d5
View code at this point
Browse repository at this point
Commits on Mar 14, 2011
Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2
jcea
committed
736e7fc
View commit details
Copy full SHA for 736e7fc
View code at this point
Browse repository at this point
Commits on Sep 29, 2010
Issue #9599: Further accuracy tweaks to loghelper. For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10.
Show description for c603717
mdickinson
committed
c603717
View commit details
Copy full SHA for c603717
View code at this point
Browse repository at this point
Commits on Sep 28, 2010
Issue #9599: Tweak loghelper algorithm to return slightly improved results for powers of 2.
mdickinson
committed
fa41e60
View commit details
Copy full SHA for fa41e60
View code at this point
Browse repository at this point
Commits on Jul 11, 2010
Improve docstrings for isnan, isinf and isfinite.
mdickinson
committed
226f544
View commit details
Copy full SHA for 226f544
View code at this point
Browse repository at this point
Issue #9165: Add math.isfinite and cmath.isfinite.
mdickinson
committed
8e0c996
View commit details
Copy full SHA for 8e0c996
View code at this point
Browse repository at this point
Commits on Jul 8, 2010
Fix typo in a comment in mathmodule.c.
ezio-melotti
committed
9527afd
View commit details
Copy full SHA for 9527afd
View code at this point
Browse repository at this point
Commits on Jul 7, 2010
Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.
mdickinson
committed
be64d95
View commit details
Copy full SHA for be64d95
View code at this point
Browse repository at this point
Minor refactoring in lgamma code, for clarity.
mdickinson
committed
9c91eb8
View commit details
Copy full SHA for 9c91eb8
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.