In my real problem, d is an arbitrarily complex expression I'd rather not type out in full, and the factored part is inside a subexpression, so I'm not sure I could get this to work.
-- 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 https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/1b8b1b7e-22ea-4ae9-9338-f0829e2341b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.