From 16066abe03d21c1df33ff2f7254f4b3251eef490 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 17 Sep 2022 19:47:22 -0500 Subject: [PATCH 1/2] Clarify that the expression is regular math notation, not a Python expression. --- Doc/library/math.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index e338959ffbe4bf..bc51b192bbfe80 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -46,7 +46,7 @@ Number-theoretic and representation functions Also called the binomial coefficient because it is equivalent to the coefficient of k-th term in polynomial expansion of the - expression ``(1 + x) ** n``. + expression ``(1 + x)ⁿ``. Raises :exc:`TypeError` if either of the arguments are not integers. Raises :exc:`ValueError` if either of the arguments are negative. From d5f6a735d06fbaf3332fb169a8f3c737f60bb073 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 17 Sep 2022 20:01:54 -0500 Subject: [PATCH 2/2] Remove unnecessary words --- Doc/library/math.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index bc51b192bbfe80..96ada7d81bd269 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -45,8 +45,8 @@ Number-theoretic and representation functions to zero when ``k > n``. Also called the binomial coefficient because it is equivalent - to the coefficient of k-th term in polynomial expansion of the - expression ``(1 + x)ⁿ``. + to the coefficient of k-th term in polynomial expansion of + ``(1 + x)ⁿ``. Raises :exc:`TypeError` if either of the arguments are not integers. Raises :exc:`ValueError` if either of the arguments are negative.