#15348: "R.<a> =" syntactic sugar incorrect for EquationOrder
-------------------------------------+-------------------------------------
       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            |  496f5ac31807f7613aaddbef6dd8119e33ca4366
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by emassop):

 Replying to [comment:35 jdemeyer]:
 > Replying to [comment:34 emassop]:
 > > {{{
 > > K.<a> = QuadraticField(-163)
 > > R.<w> = K.ring_of_integers()
 > > w = a # Since I'm not running the version with the patch.
 > > print K.order(w).index_in(R)  # R.<w> suggests this prints 1, but it
 actually prints 2.
 > > }}}
 >
 > I don't see why `R.<w>` ''suggests'' that `K.order(w) ==
 K.ring_of_integers()`. I ''do'' agree that `ring_of_integers`, `OK` and
 `maximal_order` should all behave exactly the same.

 What do you expect `w` to become in `R.<w> =`, if not a generator of `R`?

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