Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix doctest of rat_interval_cf_list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Oct 26, 2021
1 parent 056b8d4 commit fcf0f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/rings/continued_fraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def rat_interval_cf_list(r1, r2):
....: x = R.random_element() * R.random_element() + R.random_element() / 100
....: l = x.lower().exact_rational()
....: u = x.upper().exact_rational()
....: if l.floor() != u.floor():
....: continue
....: cf = rat_interval_cf_list(l,u)
....: a = continued_fraction(cf).value()
....: b = continued_fraction(cf+[1]).value()
Expand Down

0 comments on commit fcf0f14

Please sign in to comment.