Remove the O when calling the series before you create the Poly, like
poly(series(1/(1-x),n=3).removeO()).
Aaron Meurer
On Sun, Mar 8, 2015 at 11:19 PM, Mihir Wadwekar <
m.mi...@gmail.com> wrote:
> It's not a bug. It's not been defined for polynomials. Asymptotic notations
> are associated with series which are currently treated as expressions.
> Perhaps someone else can provide a better explanation.
>
> btw, for your particular case, this would be better:
>
>>>> z = series(1/(1-x),n=3).removeO() # series returns an expression
>>>> p = Poly(z, domain = 'ZZ' )
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sympy+un...@googlegroups.com.
> To post to this group, send email to
sy...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sympy.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sympy/d6206591-6e7d-4075-9160-e12024c09c34%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.