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

fix issues in RealField <-> RQDF conversions #1162

Closed
zimmermann6 opened this issue Nov 13, 2007 · 7 comments
Closed

fix issues in RealField <-> RQDF conversions #1162

zimmermann6 opened this issue Nov 13, 2007 · 7 comments

Comments

@zimmermann6
Copy link

Component: numerical

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

@zimmermann6
Copy link
Author

Attachment: 7333.patch.gz

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Nov 15, 2007

comment:1

The first chunk of the patch (patching polynomial_element.pyx) makes doctesting polynomial_element.pyx fail for me (on 32-bit x86 Linux). (Plus, the first chunk seems unrelated to the other chunks, and to the bug report. Maybe it was included by accident?)

The other two chunks look good to me.

@zimmermann6
Copy link
Author

comment:2

Yes the first chunk was included by accident and is unrelated. About this first chunk, I do not understand why
roots() gives different results on different architectures. It shouldn't if mpfr is used inside.

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Dec 2, 2007

Attachment: 1162.patch.gz

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Dec 2, 2007

comment:3

I've added my own patch for these issues. It's based on Paul Zimmerman's patch (and includes the two chunks that I said "look good", above); but it also fixes issues with converting to complex, and adds some more doctests.

@williamstein
Copy link
Contributor

comment:4
was-1162: #1162 is ready.
[03:27am] was-1162: But it is hard to apply.
[03:27am] mabshoff: ok
[03:27am] was-1162: Basically apply each patch, ignore all the failed hunks.
[03:28am] mabshoff: arrg.
[03:28am] mabshoff: will do.
[03:28am] was-1162: then go into real_mpfr.pyx and manually delete
[03:28am] was-1162: 658        elif hasattr(x, '_mpfr_'):
[03:28am] was-1162: 659            return x._mpfr_(self)
[03:28am] was-1162: It's scary--
[03:28am] mabshoff: +1
[03:28am] was-1162: but *all* that is being done is that the rounding mode is being changed from Z to N in one place.
[03:28am] was-1162: and some doctests are being changed to reflect this.
[03:28am] mabshoff: ok

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 15, 2007

comment:5

Merged in 2.9.rc0.

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Dec 15, 2007
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

2 participants