The behavior of .list() for power series also produces bugs in power series 
comparison.  I filed a ticket and patch for this at

http://trac.sagemath.org/sage_trac/ticket/9457

but ran into unexpected problems in some of the elliptic curves code, 
because the p-adics in Sage are derived from the generic power series 
classes.  So I'm all for a fix, but be warned that you might have to 
wrestle with p-adics.  (Or maybe this has been improved in the intervening 
years!)

-Niles


On Tuesday, May 7, 2013 11:50:09 PM UTC-4, Nils Bruin wrote:
>
> On May 7, 2:10 pm, David Roe <roed.m...@gmail.com> wrote: 
> > For consistency with multivariate polynomials, the coefficient method on 
> > univariate polynomials (and power series) only returns the nonzero 
> > coefficients. 
>
> Note that (x^2+1).coeffs() and list(x^2+1) do provide the desired 
> behaviour, so at least there's a workaround (don't use 
> ".coefficients()") 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to