Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typo (GH-22582) | Gaurav Kamath | 2020-10-11 | 1 | -1/+1 |
| | | | | | /af/of/s Automerge-Triggered-By: @Mariatta | ||||
* | Revert "Fix all Python Cookbook links (#22205)" (GH-22424) | Andre Delfino | 2020-09-27 | 1 | -1/+1 |
| | | | This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions. | ||||
* | Fix all Python Cookbook links (#22205) | Andre Delfino | 2020-09-15 | 1 | -1/+1 |
| | |||||
* | bpo-41513: Add docs and tests for hypot() (GH-22238) | Raymond Hettinger | 2020-09-14 | 1 | -0/+5 |
| | |||||
* | bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. ↵ | Serhiy Storchaka | 2020-02-23 | 1 | -13/+20 |
| | | | | | | | | | | | | | | | | (GH-18604) * bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. * Simplify fast path. * Difine lcm() without arguments returning 1. * Apply suggestions from code review Co-Authored-By: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | ||||
* | bpo-39479:Add math.lcm() function: Least Common Multiple (#18547) | ananthan-123 | 2020-02-19 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update math.rst * Update math.rst * updated whats new * Update test_math.py * Update mathmodule.c * Update mathmodule.c.h * Update ACKS * 📜🤖 Added by blurb_it. * Update 3.9.rst * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst * Update math.rst * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst * Update test_math.py * Update ACKS * Update mathmodule.c.h * Update mathmodule.c * Update mathmodule.c.h * Update mathmodule.c.h Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | bpo-39310: Add math.ulp(x) (GH-17965) | Victor Stinner | 2020-01-13 | 1 | -0/+26 |
| | | | | Add math.ulp(): return the value of the least significant bit of a float. | ||||
* | bpo-39288: Add examples to math.nextafter() documentation (GH-17962) | Victor Stinner | 2020-01-12 | 1 | -0/+7 |
| | |||||
* | bpo-39288: Add math.nextafter(x, y) (GH-17937) | Victor Stinner | 2020-01-12 | 1 | -0/+8 |
| | | | Return the next floating-point value after x towards y. | ||||
* | bpo-37691: Let math.dist() accept sequences and iterables for coordinates ↵ | Raymond Hettinger | 2019-07-27 | 1 | -1/+2 |
| | | | | (GH-14975) | ||||
* | bpo-37548: Document range of atan, acos and asin (GH-14717) | Giovanni Cappellotto | 2019-07-13 | 1 | -3/+6 |
| | |||||
* | bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147) | Serhiy Storchaka | 2019-06-17 | 1 | -0/+3 |
| | |||||
* | bpo-37178: Allow a one argument form of math.perm() (GH-13905) | Raymond Hettinger | 2019-06-08 | 1 | -1/+4 |
| | |||||
* | Fix grammar (GH-13801) | Raymond Hettinger | 2019-06-04 | 1 | -2/+2 |
| | |||||
* | bpo-35431: Drop the k <= n requirement (GH-13798) | Raymond Hettinger | 2019-06-04 | 1 | -8/+12 |
| | |||||
* | bpo-37128: Add math.perm(). (GH-13731) | Serhiy Storchaka | 2019-06-02 | 1 | -0/+13 |
| | |||||
* | Put math.comb() docs is correct place alphabetically (GH-13734) | Raymond Hettinger | 2019-06-01 | 1 | -15/+15 |
| | |||||
* | bpo-35431: Refactor math.comb() implementation. (GH-13725) | Serhiy Storchaka | 2019-06-01 | 1 | -2/+2 |
| | | | | | | | * Fixed some bugs. * Added support for index-likes objects. * Improved error messages. * Cleaned up and optimized the code. * Added more tests. | ||||
* | bpo-35431: Implemented math.comb (GH-11414) | Yash Aggarwal | 2019-06-01 | 1 | -0/+15 |
| | |||||
* | bpo-25735: math.factorial doc should mention integer return type (GH-6420) | Akshay Sharma | 2019-05-31 | 1 | -1/+1 |
| | |||||
* | bpo-36887: add math.isqrt (GH-13244) | Mark Dickinson | 2019-05-18 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add math.isqrt function computing the integer square root. * Code cleanup: remove redundant comments, rename some variables. * Tighten up code a bit more; use Py_XDECREF to simplify error handling. * Update Modules/mathmodule.c Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> * Update Modules/mathmodule.c Use real argument clinic type instead of an alias Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> * Add proof sketch * Updates from review. * Correct and expand documentation. * Fix bad reference handling on error; make some variables block-local; other tidying. * Style and consistency fixes. * Add missing error check; don't try to DECREF a NULL a * Simplify some error returns. * Another two test cases: - clarify that floats are rejected even if they happen to be squares of small integers - TypeError beats ValueError for a negative float * Documentation and markup improvements; thanks Serhiy for the suggestions! * Cleaner Misc/NEWS entry wording. * Clean up (with one fix) to the algorithm explanation and proof. | ||||
* | bpo-36908: 'This module is always available' isn't helpful. (#13297) | Ned Batchelder | 2019-05-17 | 1 | -2/+2 |
| | | | | Makes the documentation of math and cmath module more helpful for the beginners. | ||||
* | bpo-35606: Implement math.prod (GH-11359) | Pablo Galindo | 2019-02-07 | 1 | -0/+12 |
| | |||||
* | bpo-33089: Add math.dist() for computing the Euclidean distance between two ↵ | Raymond Hettinger | 2018-07-31 | 1 | -0/+12 |
| | | | | points (GH-8561) | ||||
* | bpo-33089: Multidimensional math.hypot() (GH-8474) | Raymond Hettinger | 2018-07-28 | 1 | -3/+12 |
| | |||||
* | bpo-26701: Add documentation for __trunc__ (GH-6022) | Eric Appelt | 2018-03-10 | 1 | -1/+1 |
| | | | | `int` fails back to `__trunc__` is `__int__` isn't defined, so cover that in the docs. | ||||
* | bpo-25910: Link redirections in docs (#1933) | Sanyam Khurana | 2018-01-20 | 1 | -1/+1 |
| | | | Fixes some redirection links in docs. | ||||
* | bpo-29956: Improve the math.exp() related documentation. (#1073) | Serhiy Storchaka | 2017-05-04 | 1 | -9/+18 |
| | |||||
* | bpo-29962: add math.remainder (#950) | Mark Dickinson | 2017-04-05 | 1 | -0/+21 |
| | | | | | | | | | | | | | | * Implement math.remainder. * Fix markup for arguments; use double spaces after period. * Mark up function reference in what's new entry. * Add comment explaining the calculation in the final branch. * Fix out-of-order entry in whatsnew. * Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error. | ||||
* | Fix misleading documentation for math.exp. (#951) | Mark Dickinson | 2017-04-02 | 1 | -2/+2 |
| | |||||
* | Issue #29282: Backed out changeset b33012ef1417 | Mark Dickinson | 2017-01-21 | 1 | -15/+0 |
| | |||||
* | Issue #29282: add fused multiply-add function, math.fma. | Mark Dickinson | 2017-01-21 | 1 | -0/+15 |
| | |||||
* | Add versionadded tags for (c)math.tau. | Georg Brandl | 2016-08-16 | 1 | -0/+2 |
| | |||||
* | Issue #12345: Add mathemathcal constant tau to math and cmath. | Guido van Rossum | 2016-08-15 | 1 | -0/+7 |
| | | | | Patch by Lisa Roach. See also PEP 628. | ||||
* | Issue #22558: Add remaining doc links to source code for Python-coded modules. | Terry Jan Reedy | 2016-06-11 | 1 | -0/+2 |
| | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi. | ||||
* | Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵ | Georg Brandl | 2016-02-26 | 1 | -8/+8 |
| | | | | to SilentGhost for the patch. | ||||
* | Issue #19543: Implementation of isclose as per PEP 485 | Tal Einat | 2015-05-31 | 1 | -0/+32 |
| | | | | | | | | | For details, see: PEP 0485 -- A Function for testing approximate equality Functions added: math.isclose() and cmath.isclose(). Original code by Chris Barker. Patch by Tal Einat. | ||||
* | merge 3.4 | Benjamin Peterson | 2015-05-12 | 1 | -2/+2 |
|\ | |||||
| * | use imperative | Benjamin Peterson | 2015-05-12 | 1 | -2/+2 |
| | | |||||
| * | Merge in all documentation changes since branching 3.4.0rc1. | Larry Hastings | 2014-03-16 | 1 | -3/+3 |
| | | |||||
* | | versionadded | Benjamin Peterson | 2015-05-12 | 1 | -0/+2 |
| | | |||||
* | | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵ | Serhiy Storchaka | 2015-05-12 | 1 | -0/+8 |
| | | | | | | | | | | | | now is deprecated. Based on patch by Mark Dickinson. | ||||
* | | Issue #23185: add math.inf and math.nan constants. | Mark Dickinson | 2015-01-11 | 1 | -0/+16 |
| | | |||||
* | | #12211: remove paragraph about NaNs | Andrew Kuchling | 2014-02-16 | 1 | -3/+0 |
| | | |||||
* | | #12211: clarify math.copysign() documentation and docstring | Andrew Kuchling | 2014-02-16 | 1 | -2/+5 |
|/ | |||||
* | Issue #18758: Fixed and improved cross-references. | Serhiy Storchaka | 2013-10-13 | 1 | -4/+5 |
| | |||||
* | #15438: merge with 3.2. | Ezio Melotti | 2013-02-23 | 1 | -0/+4 |
|\ | |||||
| * | #15438: add a note to math.pow() that suggests using **/pow() for integers. ↵ | Ezio Melotti | 2013-02-23 | 1 | -0/+4 |
| | | | | | | | | Patch by Mark Dickinson. | ||||
* | | math.fsum docs did not show up because of a misplaced testsetup directive | Łukasz Langa | 2013-01-18 | 1 | -2/+3 |
|\ \ | |/ | | | | | (merged 3.2 fix) | ||||
| * | math.fsum docs did not show up because of a misplaced testsetup directive | Łukasz Langa | 2013-01-18 | 1 | -2/+3 |
| | |