#19538: Fix LaurentPolynomialRing coercion issues
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  etn40ff                |       Status:  needs_review
           Type:         |    Milestone:  sage-6.10
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:
  algebra                |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  76ac4339b195762106d406516400f8468de844ef
  Salvatore Stella       |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/etn40ff/19358        |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by stumpc5):

 When I do the very same on {{{LaurentPolynomialRing}}}, I get into
 trouble, so I don't understand what you mean by "the conversion rules are
 the same for {{{PolynomialRing}}} and {{{LaurentPolynomialRing}}}", see
 {{{
 sage: R1 = LaurentPolynomialRing(ZZ, 'x,y')
 sage: R2 = LaurentPolynomialRing(ZZ, 'x,t')
 sage: R3 = LaurentPolynomialRing(ZZ, 't,x')
 sage: R4 = LaurentPolynomialRing(ZZ, 'x,t,y')
 sage: map(R4, R1.gens()) # rule 1
 ---------------------------------------------------------------------------
 ...
 TypeError: tuple key must have same length as ngens
 sage: map(R4, R3.gens()) # rule 1
 ---------------------------------------------------------------------------
 ...
 TypeError: tuple key must have same length as ngens
 sage: map(R1, R2.gens())  # rule 2
 [x, y]
 sage: map(R2, R1.gens())  # rule 2
 [x, t]
 sage: R1(R4('y')) # rule 3
 ---------------------------------------------------------------------------
 ...
 TypeError: tuple key must have same length as ngens
 sage: R1(R4('t')) # rule 4
 ---------------------------------------------------------------------------
 ...
 TypeError: tuple key must have same length as ngens
 }}}
 Is that behaviour what you expected?

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