#17922: coefficients() function more consistent between Expressions and 
polynomial
rings
-------------------------------------------------+-------------------------
       Reporter:  JoalHeagney                    |        Owner:
           Type:  enhancement                    |       Status:  new
       Priority:  minor                          |    Milestone:  sage-6.6
      Component:  algebra                        |   Resolution:
       Keywords:  coeffs, rings, polynomials,    |    Merged in:
  expression, symbolic                           |    Reviewers:
        Authors:                                 |  Work issues:
Report Upstream:  N/A                            |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by rws):

 Replying to [comment:3 JoalHeagney]:
 > That works for polynomial rings, are there plans to add that to
 sage.symbolic.expression.Expressions?
 That would not be difficult (in comparison). If you expect it then to
 behave identically you will be disappointed however, because symbolics
 have no default generator (although `Expression.coefficients()` has the
 lexically first occuring var hard-wired when no varname is given).
 {{{
 sage: var('a,b,c')
 (a, b, c)
 sage: (a+2*a^2+3*b).list()
 [3*b, 1, 2]
 sage: (3*b+a+2*a^2).list()
 [3*b, 1, 2]
 sage: (3*b+c+2*c^2).list()
 [2*c^2 + c, 3]
 }}}
 so you could never have true polymorphism.

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