Skip to content
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

RBF: continued_fraction #20069

Closed
dkrenn opened this issue Feb 16, 2016 · 12 comments
Closed

RBF: continued_fraction #20069

dkrenn opened this issue Feb 16, 2016 · 12 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Feb 16, 2016

sage: continued_fraction(RBF(e))

raises a RuntimeError: maximum recursion depth exceeded ..., but

sage: continued_fraction(RIF(e))
[2; 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, 1, 1, 10, 1, 1, 12, 2]

Component: numerical

Keywords: arb

Author: Daniel Krenn

Branch/Commit: 5c3b41f

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/20069

@dkrenn dkrenn added this to the sage-7.1 milestone Feb 16, 2016
@dkrenn
Copy link
Contributor Author

dkrenn commented Feb 16, 2016

Changed keywords from none to arb

@dkrenn dkrenn changed the title Arb: continued_fraction RBF: continued_fraction Feb 16, 2016
@dkrenn
Copy link
Contributor Author

dkrenn commented Feb 23, 2016

Branch: u/dkrenn/rbf-continued-frac

@dkrenn
Copy link
Contributor Author

dkrenn commented Feb 23, 2016

Commit: b3ec6eb

@dkrenn
Copy link
Contributor Author

dkrenn commented Feb 23, 2016

Author: Daniel Krenn

@dkrenn
Copy link
Contributor Author

dkrenn commented Feb 23, 2016

New commits:

b3ec6ebTrac #20069: fix continued_fraction for real balls (RBF)

@tscrim
Copy link
Collaborator

tscrim commented Mar 6, 2016

comment:4

All is_RealIntervalField does is

return isinstance(x, RealIntervalField_class)

So I think a better check would be

if isinstance(x.parent(), (RealIntervalField_class, RealBallField)):

Also, could you make the statement :trac:`20069`:: a little more verbose? Something like

Check that this works for arb elements (:trac:`20069`)::

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 7, 2016

Changed commit from b3ec6eb to 5c3b41f

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 7, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

5c3b41fTrac #20069: improvments suggested by reviewer

@dkrenn
Copy link
Contributor Author

dkrenn commented Mar 7, 2016

comment:6

Replying to @tscrim:

All is_RealIntervalField does is

return isinstance(x, RealIntervalField_class)

So I think a better check would be

if isinstance(x.parent(), (RealIntervalField_class, RealBallField)):

Changed.

Also, could you make the statement :trac:`20069`:: a little more verbose? Something like

Check that this works for arb elements (:trac:`20069`)::

Changed as well. Thank you for your comments.

@tscrim
Copy link
Collaborator

tscrim commented Mar 7, 2016

comment:7

Thanks.

@tscrim
Copy link
Collaborator

tscrim commented Mar 7, 2016

Reviewer: Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Mar 8, 2016

Changed branch from u/dkrenn/rbf-continued-frac to 5c3b41f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants