summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-06-01 19:09:02 (GMT)
committerGitHub <noreply@github.com>2019-06-01 19:09:02 (GMT)
commit2b843ac0ae745026ce39514573c5d075137bef65 (patch)
tree8e176372e55d171590b4c798d6deaf9311cbef8c /Doc
parent9843bc110dc4241ba7cb05f3d3ef74ac6c77caf2 (diff)
downloadcpython-2b843ac0ae745026ce39514573c5d075137bef65.zip
cpython-2b843ac0ae745026ce39514573c5d075137bef65.tar.gz
cpython-2b843ac0ae745026ce39514573c5d075137bef65.tar.bz2
bpo-35431: Refactor math.comb() implementation. (GH-13725)
* Fixed some bugs. * Added support for index-likes objects. * Improved error messages. * Cleaned up and optimized the code. * Added more tests.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/math.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 5243970..206b06e 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -238,11 +238,11 @@ Number-theoretic and representation functions
and without order.
Also called the binomial coefficient. It is mathematically equal to the expression
- ``n! / (k! (n - k)!)``. It is equivalent to the coefficient of k-th term in
+ ``n! / (k! (n - k)!)``. It is equivalent to the coefficient of the *k*-th term in the
polynomial expansion of the expression ``(1 + x) ** n``.
Raises :exc:`TypeError` if the arguments not integers.
- Raises :exc:`ValueError` if the arguments are negative or if k > n.
+ Raises :exc:`ValueError` if the arguments are negative or if *k* > *n*.
.. versionadded:: 3.8