On 12 Mrz., 16:44, Dan Schult <dsch...@colgate.edu> wrote: > Thanks very much for the explanation. It still seems I > have to intervene to tell it to collect the terms with "r". > I have found that I can include a list of terms like "r" and > collect will still work and then cancel can work on that. > > But does anyone have a general way to recombine using collect > and cancel so that I don't have to know ahead of time which > terms to collect? Otherwise it can't be automated. > > Mathematica and maple do this sort of thing so it must be > possible here too... I've tried looping over .args in the > numerator looking for pieces of the denominator--but feel > that there must be a better. > Thanks, > Dan Schult
It would be great if you could provide a concrete test case (with your expected result) to work on. You are welcome to open a new issue for this in our issue tracker. Vinzent -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@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.