I have a sum of terms some of which are multiplied by cos(th). I want to group these terms together (in parenthesis) and have the terms not multiplied by cos(th). A complicating issue is that the sum is a numerator in a fraction. Consider the following expression:
(A*cos(th)+B*cos(th)+C)/D what I want is: ((A+B)*cos(th)+C)/D or: (A+B)*cos(th)/D +C/D Any suggestions would be welcome. Note that if I expand the first expression it prints out the same and not as: A*cos(th)/D+B*cos(th)/D+C/D -- 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/2b10c43b-0bd7-4891-a33b-33678b34ea97n%40googlegroups.com.