#4621: '2' not in QQbar -- canonical embedding of subfields
------------------------------------------------+--------------------------
Reporter: SimonKing | Owner: tbd
Type: defect | Status: needs_info
Priority: major | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: canonical embedding subfield | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------------------+--------------------------
Comment (by vdelecroix):
Replying to [comment:12 vdelecroix]:
> The reason why this fails is
> {{{
> sage: F.<a>= NumberField(x^2-2)
> sage: two = F(2)
> sage: QQbar(two)
> Traceback (most recent call last):
> ...
> TypeError: Illegal initializer for algebraic number
> }}}
> One way to fix it is to be more flexible on creation of algebraic number
(in `AA._element_constructor_` or `QQbar._element_constructor_`) or to
implement a method `_algebraic_` to number field elements.
the above is fixed in #14485 and #20400 but it does not solve the
containment test!
--
Ticket URL: <http://trac.sagemath.org/ticket/4621#comment:13>
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.