Skip to content

Commit 6e3843b

Browse files
committed
address review: references to InternalDocs/fractions.md
1 parent 9048d40 commit 6e3843b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Lib/fractions.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ def limit_denominator(self, max_denominator=1000000):
403403
# approximation to x if, and only if, it is a convergent or
404404
# semiconvergent of the (unique shortest) continued fraction
405405
# associated to x. See e.g. Continued Fractions by A. Ya.
406-
# Khinchin (1964), Theorem 15.
406+
# Khinchin (1964), Theorem 15. See also
407+
# InternalDocs/fractions.md for details.
407408
#
408409
# To find a best rational approximation with denominator <= M,
409410
# we find the best upper and lower approximations with
@@ -725,6 +726,7 @@ def reverse(b, a):
725726
return forward, reverse
726727

727728
# Rational arithmetic algorithms: Knuth, TAOCP, Volume 2, 4.5.1.
729+
# See also InternalDocs/fractions.md for details.
728730

729731
def _add(a, b):
730732
"""a + b"""

0 commit comments

Comments
 (0)