-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
incorrect trailing digits for continued fraction #8017
Comments
Attachment: 8017-cont-frac.patch.gz |
comment:1
This does change the definition from "continued fraction expansion of a real approximation" to "truncation of continued fraction expansion." It also adds an nterms option to compute a specified number of terms. |
comment:3
Robert, this seems to be great work! However a small question: for exact symbolic input,
I guess the above should give instead:
Can the same problem happen with say sqrt(2), or is it only for rationals? |
Attachment: 8017-contfrac-referee-fixes.patch.gz |
comment:4
Thank you for looking at this. As you can probably tell, the current behavior really bothers me ;). I've fixed the case above (yes, it only impacted rationals). |
comment:5
while I'm running the doctests, a few comments: (1) maybe the documentation should say that the I also suggest giving an additional example showing that we can give as input a floating-point
In the meantime the doctests finished, and I get two failures:
|
comment:7
positive review, good work, Robert! However I see as a side effect you had to change the doctests Paul |
Reviewer: Paul Zimmermann |
Author: Robert Bradshaw |
comment:8
Attachment: 8017-contfrac-referee2.patch.gz Thanks for being so quick to look at this after such a long wait. Yes, I was thinking about this when I made these changes. The answers are not substantially different, and should be clear to any user that the current behavior is correct (e.g. by computing things out to higher precision or consulting external sources). Most importantly, the commands used are not broken or semantically different, which would be really bad. I refreshed the patch just inserting a little note about the change (and, of course, it will be fully recorded in the revision control system). |
comment:9
Should the release manager merge all three patches? By the way, the first patch is missing a Mercurial header and the second a descriptive commit string. |
Attachment: 8017-all.patch.gz apply only this patch |
comment:10
I have folded all three patches into 8017-all.patch, apply that one. |
Merged: sage-4.5.3.alpha0 |
Followup to and depends on #5107, which documents the function better.
CC: @williamstein
Component: basic arithmetic
Author: Robert Bradshaw
Reviewer: Paul Zimmermann
Merged: sage-4.5.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8017
The text was updated successfully, but these errors were encountered: