#14548: coefficients method for polynomials and power series
-------------------------+-------------------------------------------------
       Reporter:  roed   |        Owner:  AlexGhitza
           Type:         |       Status:  needs_review
  defect                 |    Milestone:  sage-duplicate/invalid/wontfix
       Priority:  major  |   Resolution:
      Component:         |    Merged in:
  algebra                |    Reviewers:
       Keywords:         |  Work issues:
        Authors:         |       Commit:
Report Upstream:  N/A    |  7b56441867da56bb3d41ef1829432bf098f3489d
         Branch:         |     Stopgaps:
  u/chapoton/14548       |
   Dependencies:         |
-------------------------+-------------------------------------------------
Changes (by rws):

 * status:  new => needs_review
 * milestone:  sage-6.4 => sage-duplicate/invalid/wontfix


Old description:

> In #2081 we introduced a `coefficients` method for univariate polynomials
> and power series, which only returns the nonzero coefficients.
>
> {{{
> sage: R.<x> = QQ[]
> sage: (x^2+1).coefficients()
> [1, 1]
> }}}
>
> * The result for `x^2 + 1` should be `[1, 0, 1]`.
> * We should add a method `coefficients_nonzero` for univariate and
> multivariable polynomials and power series that does what `coefficients`
> now does.
> * We should deprecate the `coefficients` method on multivariate
> polynomials.

New description:

 In #2081 we introduced a `coefficients` method for univariate polynomials
 and power series, which only returns the nonzero coefficients.

 {{{
 sage: R.<x> = QQ[]
 sage: (x^2+1).coefficients()
 [1, 1]
 }}}

 * The result for `x^2 + 1` should be `[1, 0, 1]`.
 * We should add a method `coefficients_nonzero` for univariate and
 multivariable polynomials and power series that does what `coefficients`
 now does.
 * We should deprecate the `coefficients` method on multivariate
 polynomials.

 See also #17518 and the sage-devel discussion linked there.

--

Comment:

 See also #17518 and the sage-devel discussion linked there. #17518 clashes
 with this ticket because it implements a different solution, i.e., a
 `sparse` keyword. This is certainly better than changing a much used
 function name. Note also that with #17518 and #17438 the interface to the
 same functions in `SR` and `PowerSeriesRing` is unified.

 I therefore propose to obsolete this ticket.

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