#20209: Failing conversion QQbar -> RIF
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-7.1
Component: number fields | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/20209 | a0646da0189cd7d177e63128fc6b233aff5f99cc
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:3 tscrim]:
> I think a better solution would be to do
> [...]
The operation `self.imag().is_zero()` is potentially costly
("exactification"). But we can check it on the interval instead. This is
what contains the last commit.
> (I would probably even put the import at the namespace level too.) That
way we do not generate the error and catch it, which is a slow operation
compared to an `isinstance` check:
> ...
Done.
--
Ticket URL: <http://trac.sagemath.org/ticket/20209#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.