Skip to content

Commit 86176bb

Browse files
author
jbbjarnason
committed
docs/library/math: Add new function math.gcd to docs.
1 parent 2196eda commit 86176bb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/differences/python_35.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Changes to built-in modules:
101101
+-----------------------------------------------------------------------------------------------------------+---------------+
102102
| A new function *isclose()* provides a way to test for approximate equality. | |
103103
+-----------------------------------------------------------------------------------------------------------+---------------+
104-
| A new *gcd()* function has been added. The *fractions.gcd()* function is now deprecated. | |
104+
| A new *gcd()* function has been added. The *fractions.gcd()* function is now deprecated. | Completed |
105105
+-----------------------------------------------------------------------------------------------------------+---------------+
106106
| `os <https://docs.python.org/3/whatsnew/3.5.html#os>`_ |
107107
+-----------------------------------------------------------------------------------------------------------+---------------+

docs/differences/python_39.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Changes to built-in modules:
9090
+---------------------------------------------------------------------------------------------------------------+---------------+
9191
| `math` |
9292
+---------------------------------------------------------------------------------------------------------------+---------------+
93-
| Expanded the *math.gcd()* function to handle multiple arguments. Formerly, it only supported two arguments | |
93+
| Expanded the *math.gcd()* function to handle multiple arguments. Formerly, it only supported two arguments | Completed |
9494
+---------------------------------------------------------------------------------------------------------------+---------------+
9595
| Added *math.lcm()*: return the least common multiple of specified arguments | |
9696
+---------------------------------------------------------------------------------------------------------------+---------------+

docs/library/math.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ Functions
104104

105105
Return the gamma function of ``x``.
106106

107+
.. function:: gcd(x, y, ...)
108+
109+
Return the greatest common divisor of any amount of numbers with minimum of 2 arguments.
110+
107111
.. function:: isfinite(x)
108112

109113
Return ``True`` if ``x`` is finite.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy