Hi All, I want to find the exponents of the terms of an expression after using factor(). For example:
>>> from sympy import factor > >>> from sympy.abc import x,y,z > >>> a = x**2 + 2*x*y + y**2 > >>> terms = Mul.make_args(factor(a)) > I can iterate through `terms` and for each term in terms I want to know the exponent associated it with. In this example, terms = ((x + y)**2,). How can I find out that the `x+y` has an exponent of 2? Thanks in advance. Thilina. -- 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 post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.