#15348: "R.<a> =" syntactic sugar incorrect for EquationOrder and ZZ.extension
-------------------------------------+-------------------------------------
       Reporter:  emassop            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.0
      Component:  number fields      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/15348            |  dac0a4cdb957393b282619213dc231f55cf55cc4
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 If you want this to work:
 {{{
 sage: K.<i> = NumberField(x^2+1)
 sage: O.<a> = K.order(-i+1)
 sage: a
 -i + 1
 }}}
 you'll need to drop unique representation for orders: currently, the
 following two return the exact same object:
 {{{
 sage: O1 = K.order(-i+1)
 sage: O2 = K.order(-i)
 sage: O1 is O2
 True
 }}}
 You cannot have `O1.defining_generators()` and `O2.defining_generators()`
 be different if `O1` is the same object as `O2`. So this cannot be fixed
 without making major changes.

--
Ticket URL: <http://trac.sagemath.org/ticket/15348#comment:14>
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.

Reply via email to