> > I get something else: > >>>> solve(a*x + a + b*y - c - d, a, b) > ⎡⎧ -b⋅y + c + d⎫⎤ > ⎢⎨a: ────────────⎬⎥ > ⎣⎩ x + 1 ⎭⎦ > > It does not really make sense to me to return exactly 4 solutions. However, > you can use two special solutions to get the general one (constructing a > line): >
Thanks, Vinzent. I've got to look at this in a unicode printout, but let me at least respond to this part. The solve that I used is the modified one in my multinomial branch. The 4 solutions I get are from assigning all permutations of [c, d] to the a-part and b-part which are being solved. e.g. the a-part is a*(x+1) and the b-part is b*y; one solution is obtained by assigning -(c+d) to the a-part to give a*(x+1)-(c+d)=0 and b*y=0 -> a = (c+d)/(x+1) and b=0, we can also assign the -(c+d) to the b-part or the c to the a-part and d to the b-part or vice versa. That's where the 4 solutions come from. /c -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.