-
-
Notifications
You must be signed in to change notification settings - Fork 528
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 #5107
Comments
comment:1
3.4 is for ReST tickets only. Cheers, Michael |
comment:2
The computation is done in the function I wonder why we're not using PARI also when the input is a real number. It's fast, and it looks right:
|
Attachment: trac_5107.patch.gz |
comment:3
Hi, I've looked through this carefully.
So, I've attached a patch that:
It doesn't change what anything actually does in any significant way. |
comment:4
Positive review, except for two minor typos which I'm adding a separate patch for. |
comment:5
Attachment: 5107_contfrac_typo.patch.gz I find it surprising that The fact that it's not documented is a huge step forward, so +1 to that. |
comment:6
I guess I should say regarding the "incorrect" results above, that "this function doesn't do what it looks like it does, read the documentation" which is somewaht unsatisfactory. |
comment:7
+1 to the referee patch. Perhaps the only thing that would easily make you happy right now would be to require the prec option if the input is symbolic? That way in the future when somebody writes "continued_fraction(pi)", then it will work as you want... Thoughts? |
Author: William Stein |
Reviewer: Willem Jan Palenstijn |
comment:8
I interpret the discussion above as: (a) William's patch gets a positive review from Willem, (b) Willem's referee patch gets a positive review from William, and (c) there are improvements we should make to the continued fractions code, which should probably be a new enhancement ticket. |
Merged: sage-4.3.2.alpha0 |
See http://groups.google.com/group/sage-devel/browse_thread/thread/ab840e109863fcf3/c38d571a161b7628
Component: basic arithmetic
Author: William Stein
Reviewer: Willem Jan Palenstijn
Merged: sage-4.3.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/5107
The text was updated successfully, but these errors were encountered: