New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor continued fractions #14567
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:2
The ticket is not yet finished but the review may start (all test pass on my computer... waiting for patchbot). Here are some questions I am not sure how to deal about.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
The last patch still does not implement a proper function to compute numerical approximations. It would be interesting to add one... |
This comment has been minimized.
This comment has been minimized.
comment:7
The patch modifies the output of continued_fraction and hence some tests in |
This comment has been minimized.
This comment has been minimized.
comment:9
instead of
you should use
because the numbers can change There are some other doctests failing due to the change of output string, please correct them |
comment:10
Replying to @fchapoton:
Many thanks for that suggestion (it actually happens for me several times).
The ticket is updated. |
comment:12
A doctest still fails. |
Work Issues: failing doctest |
Changed work issues from failing doctest to none |
comment:55
Thanks. There are changes that affect two of William's books. I sent him an e-mail (cc'ed in sage-devel): see this thread. Vincent |
Changed work issues from doctest continuation to none |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:59
Ralf, the one line you add to the file was wrong. I just replace it. I guess we should close the ticket has nobody answered on the sage-devel thread since a month now. Vincent |
comment:60
Replying to @videlec:
Oh well, thanks. |
comment:61
Note: merge cleanly on sage-6.5.beta6 and tests pass in |
Changed branch from public/ticket/14567 to |
comment:63
Hey, I just hit an annoying case...
However,
The problem is that RealLiteral and continued fractions no longer work together... |
Changed commit from |
comment:64
Indeed... did you open a ticket? |
comment:65
Replying to @videlec:
No, can you? |
comment:66
Ping - I don't quite know what the issue is but hopefully a ticket can be opened. |
comment:68
See #20012 for really deprecating |
Continued fractions (in sage.rings.contfrac) do not do what we expect:
The patch proposed here develop some general design for dealing with continued fractions and solve all issues above.
With the patch applied we can do
In particular we solve the question in #11345.
Depends on #13213
Depends on #13256
Depends on #14563
CC: @sagetrac-tmonteil @seblabbe @sagetrac-Fougeroc
Component: number theory
Keywords: continued fractions, numerical approximation
Author: Vincent Delecroix
Branch:
ec4a4ba
Reviewer: Ralf Stephan, Thierry Monteil
Issue created by migration from https://trac.sagemath.org/ticket/14567
The text was updated successfully, but these errors were encountered: