summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo (GH-22582)Gaurav Kamath2020-10-111-1/+1
| | | | | /af/of/s Automerge-Triggered-By: @Mariatta
* Revert "Fix all Python Cookbook links (#22205)" (GH-22424)Andre Delfino2020-09-271-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 Delfino2020-09-151-1/+1
|
* bpo-41513: Add docs and tests for hypot() (GH-22238)Raymond Hettinger2020-09-141-0/+5
|
* bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. ↵Serhiy Storchaka2020-02-231-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-1232020-02-191-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 Stinner2020-01-131-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 Stinner2020-01-121-0/+7
|
* bpo-39288: Add math.nextafter(x, y) (GH-17937)Victor Stinner2020-01-121-0/+8
| | | Return the next floating-point value after x towards y.
* 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
| |