#16509: bug in .as_finite_field_element() when minimal=True
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  finite rings       |   Resolution:
       Keywords:  bug                |    Merged in:
        Authors:  Peter Bruin        |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/pbruin/16509-as_finite_field_element|  
5572837f991d5ed6a1674e009de8c38e0c3bbc7c
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Hi Peter,

 And, one more remark, with QQbar when such method is called the internal
 representation is changed:
 {{{
 sage: a = QQbar(2^(1/4))
 sage: b = a**2
 sage: b.as_number_field_element()
 (Number Field in a with defining polynomial y^4 - 2, a^2, Ring morphism:
    From: Number Field in a with defining polynomial y^4 - 2
    To:   Algebraic Real Field
    Defn: a |--> 1.189207115002722?)
 sage: b.as_number_field_element(minimal=True)
 (Number Field in a with defining polynomial y^2 - 2, a, Ring morphism:
    From: Number Field in a with defining polynomial y^2 - 2
    To:   Algebraic Real Field
    Defn: a |--> 1.414213562373095?)
 sage: b.as_number_field_element(minimal=False)
 (Number Field in a with defining polynomial y^2 - 2, a, Ring morphism:
    From: Number Field in a with defining polynomial y^2 - 2
    To:   Algebraic Real Field
    Defn: a |--> 1.414213562373095?)
 }}}
 Do we want the same here?

 Vincent

--
Ticket URL: <http://trac.sagemath.org/ticket/16509#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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to