Given a Polynomial with an asymptotic term: >>> from sympy import series, poly >>> from sympy.abc import x >>> p=poly(series(1/(1-x),n=3)) >>> p Poly(x**2 + x + O(x**3) + 1, x, O(x**3), domain='ZZ')
how do I remove the O(x**3) term so that I can use methods like p.all_coeffs()? Thanks in advance, -Kevin -- 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 [email protected]. To post to this group, send email to [email protected]. 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/7675503d-4205-4ef6-81c8-bda69cd2e3a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
