I don't know what Mathematica's Eliminate does, but it seems to me that the solve() line below should just work, without the user having to consider what kind of solving procedure is necessary to solve it.
Aaron Meurer On Mar 10, 2011, at 3:27 AM, smichr wrote: > Another thing that I think would be useful is a more robust method of > eliminating variables from expressions: Mathematica's Eliminate. > Sometimes this is couched in terms of "matching coefficients" (which > sympy somewhat handles for a 2 equation case). > >>>> solve([x**2+3*x+4, (x+a)**2+b], [a,b]) # no solution >>>> solve_undetermined_coeffs(Eq(x**2+3*x+4, (x+a)**2+b),[a,b],x) > [(3/2, 7/4)] > > But it would be nice to have this for more than one equation and also > have it be more flexible so it would work if there were more than one > variable to be eliminated (e.g. x and y). -- 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.