Use expand() and collect(), like collect(expand(expr), u).

Aaron Meurer

On Tue, Dec 9, 2014 at 5:28 PM, Paul Royik <[email protected]> wrote:
> What function should I use to rewrite 2/(a*(u**2 + 1) - b*(u**2 - 1)) into
> 2/((a-b)*u**2+(a+b))?
>
>
> Thanks.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/86982404-4901-4fe3-8a24-0273cc6e80f1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BmG8v5-jqQsBCPWpemU3TaaAUTD9QdP8PHSq-EnyG%3D4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to