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

Interval and ball field elements conversion to Python float/complex #23145

Closed
rwst opened this issue Jun 6, 2017 · 12 comments
Closed

Interval and ball field elements conversion to Python float/complex #23145

rwst opened this issue Jun 6, 2017 · 12 comments

Comments

@rwst
Copy link

rwst commented Jun 6, 2017

Each of float(RIF(1)),float(RBF(1)),float(CBF(1)) fails with

TypeError: float() argument must be a string or a number

and float(CIF(1)) fails with

TypeError: can't convert complex interval to float

i.e. the __float__() member exists but is not implemented.

Component: numerical

Author: Ralf Stephan

Branch/Commit: 4138752

Reviewer: Travis Scrimshaw

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

@rwst rwst added this to the sage-8.0 milestone Jun 6, 2017
@rwst

This comment has been minimized.

@rwst
Copy link
Author

rwst commented Jun 7, 2017

@rwst
Copy link
Author

rwst commented Jun 7, 2017

New commits:

13bb3b023145: Interval and ball field elements conversion to Python float/complex

@rwst
Copy link
Author

rwst commented Jun 7, 2017

Author: Ralf Stephan

@rwst
Copy link
Author

rwst commented Jun 7, 2017

Commit: 13bb3b0

@tscrim
Copy link
Collaborator

tscrim commented Jun 7, 2017

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Jun 7, 2017

comment:4

These should all be there because we can naturally convert to RR, which has coercions to RDF and floats.

@vbraun
Copy link
Member

vbraun commented Jun 10, 2017

comment:5

See patchbot

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 12, 2017

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

025ba10Merge branch 'develop' into t/23145/interval_and_ball_field_elements_conversion_to_python_float_complex
413875223145: fix doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 12, 2017

Changed commit from 13bb3b0 to 4138752

@rwst
Copy link
Author

rwst commented Jun 12, 2017

comment:7

Just a quick fix for a missed doctest.

@vbraun
Copy link
Member

vbraun commented Jun 13, 2017

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