summaryrefslogtreecommitdiff
path: root/Doc/whatsnew/3.9.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-02-23 13:21:29 +0200
committerGitHub <noreply@github.com>2020-02-23 11:21:29 +0000
commit559e7f165ad03731e6bc2211c0e6d8d9c02fb549 (patch)
tree0cf0f31bae98ea188a5fde21a1db4c068539dbdb /Doc/whatsnew/3.9.rst
parentfbe2e0bb8a7ee75d0f9d57682436dac7d69e202e (diff)
downloadcpython-git-559e7f165ad03731e6bc2211c0e6d8d9c02fb549.tar.gz
bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. (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>
Diffstat (limited to 'Doc/whatsnew/3.9.rst')
-rw-r--r--Doc/whatsnew/3.9.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 161675d32f..a0ae4eb9b8 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -216,8 +216,13 @@ import attempts.
math
----
-Add :func:`math.lcm`: return the least common multiple of *a* and *b*.
-(Contributed by Ananthakrishnan in :issue:`39479`.)
+Expanded the :func:`math.gcd` function to handle multiple arguments.
+Formerly, it only supported two arguments.
+(Contributed by Serhiy Storchaka in :issue:`39648`.)
+
+Add :func:`math.lcm`: return the least common multiple of specified arguments.
+(Contributed by Mark Dickinson, Ananthakrishnan and Serhiy Storchaka in
+:issue:`39479` and :issue:`39648`.)
Add :func:`math.nextafter`: return the next floating-point value after *x*
towards *y*.