diff options
author | ananthan-123 <ananthakrishnan15.2001@gmail.com> | 2020-02-19 23:51:37 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 18:21:37 +0000 |
commit | f2ee21d858bc03dd801b97afe60ee2ea289e2fe9 (patch) | |
tree | 7a35d8b02a53df4505d275b67bc56462cda33619 /Doc/library | |
parent | 4dee92b0ad9f4e3ea2fbbbb5253340801bb92dc7 (diff) | |
download | cpython-git-f2ee21d858bc03dd801b97afe60ee2ea289e2fe9.tar.gz |
bpo-39479:Add math.lcm() function: Least Common Multiple (#18547)
* 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>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/math.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index c4c180037f..d8ac35256d 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -136,6 +136,15 @@ Number-theoretic and representation functions .. versionadded:: 3.5 +.. function:: lcm(a, b) + + Return the least common multiple of integers *a* and *b*. The value of + ``lcm(a, b)`` is the smallest nonnegative integer that is a multiple of + both *a* and *b*. If either *a* or *b* is zero then ``lcm(a, b)`` is zero. + + .. versionadded:: 3.9 + + .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0) Return ``True`` if the values *a* and *b* are close to each other and |