The things you call "coefficients" are called "terms" of the sum. If you know you have a sum then `eq.args` will give you the terms. If the equation might have a single term then `Add.make_args(eq)` will give you 1 or more terms.
/c On Thursday, April 27, 2023 at 12:02:33 PM UTC-5 distan...@gmail.com wrote: > Hello. > > How can I get all unexpanded coeffs of a polynomial? > > For example, Poly(360*x*y**71*(y**72 - 1)**4 + 360*x**4*(x**5 - 1)**71, > x).all_coeffs() should return [360*y**71*(y**72 - 1)**4, 360*x**4*(x**5 - > 1)**71], but, instead, it returns expanded long expression. > > How to avoid this and return untouched coeffs? > > Thank you. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/6cd077a4-91f9-48e1-9d66-86c2c451f984n%40googlegroups.com.