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

Comment (by bruno):

 Is it really the syntactic sugar that poses problem? It seems that
 `inject_variables()` is the problem.

 {{{
 #!python
 sage: f = x^2+1
 sage: R = ZZ.extension(f,'i')
 sage: R.inject_variables()
 Defining i
 sage: i
 1
 }}}

 The problem seems to come from the fact that `R.variable_names()` is
 `('i',)` while `R.gens()` is `[1,i]`, and a `zip` is called on these two
 objects, resulting in `[('i',1)]`.

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