Skip to content

Commit 568cb5b

Browse files
committed
+ add reference to Khinchin's book
1 parent abae92b commit 568cb5b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/fractions.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ def limit_denominator(self, max_denominator=1000000):
402402
# proved that a rational number is a best upper or lower
403403
# approximation to x if, and only if, it is a convergent or
404404
# semiconvergent of the (unique shortest) continued fraction
405-
# associated to x.
405+
# associated to x. See e.g. Continued Fractions by A. Ya.
406+
# Khinchin (1964), Theorem 15.
406407
#
407408
# To find a best rational approximation with denominator <= M,
408409
# we find the best upper and lower approximations with

0 commit comments

Comments
 (0)