summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37691: Let math.dist() accept sequences and iterables for coordinates ↵Raymond Hettinger2019-07-271-1/+2
| | | | (GH-14975)
* bpo-37548: Document range of atan, acos and asin (GH-14717)Giovanni Cappellotto2019-07-131-3/+6
|
* bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)Serhiy Storchaka2019-06-171-0/+3
|
* bpo-37178: Allow a one argument form of math.perm() (GH-13905)Raymond Hettinger2019-06-081-1/+4
|
* Fix grammar (GH-13801)Raymond Hettinger2019-06-041-2/+2
|
* bpo-35431: Drop the k <= n requirement (GH-13798)Raymond Hettinger2019-06-041-8/+12
|
* bpo-37128: Add math.perm(). (GH-13731)Serhiy Storchaka2019-06-021-0/+13
|
* Put math.comb() docs is correct place alphabetically (GH-13734)Raymond Hettinger2019-06-011-15/+15
|
* bpo-35431: Refactor math.comb() implementation. (GH-13725)Serhiy Storchaka2019-06-011-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 Aggarwal2019-06-011-0/+15
|
* bpo-25735: math.factorial doc should mention integer return type (GH-6420)Akshay Sharma2019-05-311-1/+1
|
* bpo-36887: add math.isqrt (GH-13244)Mark Dickinson2019-05-181-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 Batchelder2019-05-171-2/+2
| | | | Makes the documentation of math and cmath module more helpful for the beginners.
* bpo-35606: Implement math.prod (GH-11359)Pablo Galindo2019-02-071-0/+12
|
* bpo-33089: Add math.dist() for computing the Euclidean distance between two ↵Raymond Hettinger2018-07-311-0/+12
| | | | points (GH-8561)
* bpo-33089: Multidimensional math.hypot() (GH-8474)Raymond Hettinger2018-07-281-3/+12
|
* bpo-26701: Add documentation for __trunc__ (GH-6022)Eric Appelt2018-03-101-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 Khurana2018-01-201-1/+1
| | | Fixes some redirection links in docs.
* bpo-29956: Improve the math.exp() related documentation. (#1073)Serhiy Storchaka2017-05-041-9/+18
|
* bpo-29962: add math.remainder (#950)Mark Dickinson2017-04-051-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 Dickinson2017-04-021-2/+2
|
* Issue #29282: Backed out changeset b33012ef1417Mark Dickinson2017-01-211-15/+0
|
* Issue #29282: add fused multiply-add function, math.fma.Mark Dickinson2017-01-211-0/+15
|
* Add versionadded tags for (c)math.tau.Georg Brandl2016-08-161-0/+2
|
* Issue #12345: Add mathemathcal constant tau to math and cmath.Guido van Rossum2016-08-151-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 Reedy2016-06-111-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 Brandl2016-02-261-8/+8
| | | | to SilentGhost for the patch.
* Issue #19543: Implementation of isclose as per PEP 485Tal Einat2015-05-311-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.4Benjamin Peterson2015-05-121-2/+2
|\
| * use imperativeBenjamin Peterson2015-05-121-2/+2
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-3/+3
| |
* | versionaddedBenjamin Peterson2015-05-121-0/+2
| |
* | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵Serhiy Storchaka2015-05-121-0/+8
| | | | | | | | | | | | now is deprecated. Based on patch by Mark Dickinson.
* | Issue #23185: add math.inf and math.nan constants.Mark Dickinson2015-01-111-0/+16
| |
* | #12211: remove paragraph about NaNsAndrew Kuchling2014-02-161-3/+0
| |
* | #12211: clarify math.copysign() documentation and docstringAndrew Kuchling2014-02-161-2/+5
|/
* Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-4/+5
|
* #15438: merge with 3.2.Ezio Melotti2013-02-231-0/+4
|\
| * #15438: add a note to math.pow() that suggests using **/pow() for integers. ↵Ezio Melotti2013-02-231-0/+4
| | | | | | | | Patch by Mark Dickinson.
* | math.fsum docs did not show up because of a misplaced testsetup directiveŁukasz Langa2013-01-181-2/+3
|\ \ | |/ | | | | (merged 3.2 fix)
| * math.fsum docs did not show up because of a misplaced testsetup directiveŁukasz Langa2013-01-181-2/+3
| |
* | #16154: merge with 3.2.Ezio Melotti2013-01-111-0/+2
|\ \ | |/
| * #16154: fix some doctests in Doc/library. Patch by Ravi Sinha.Ezio Melotti2013-01-111-0/+2
| |
* | meth.log2 doc: add a link to int.bit_length()Victor Stinner2011-09-211-0/+5
| |
* | note the point of having log2Benjamin Peterson2011-05-091-1/+2
| |
* | Issue #11888: Add log2 function to math module. Patch written by MarkVictor Stinner2011-05-081-0/+7
|/ | | | Dickinson.
* Fix markup and wording.Raymond Hettinger2011-03-311-3/+4
|
* Add links to make the math docs more usable.Raymond Hettinger2011-03-311-7/+23
|
* Include versionadded in (c)math.isfinite docs (thanks Ezio Melotti). Other ↵Mark Dickinson2010-07-111-3/+5
| | | | minor doc cleanups.
* Issue #9165: Add math.isfinite and cmath.isfinite.Mark Dickinson2010-07-111-0/+6
|