I guess the issue comes when you do the /2 outside the exp. Anything that keeps a constant from distributing (such as together) is a hack, since it by default automatically distributes, so it's not surprising that some things break it.
The best way to fix this would be to fix issue 1497. Aaron Meurer On Fri, Jul 26, 2013 at 4:30 AM, Ben Lucato <[email protected]> wrote: > If I do: > > z = -log((-x/2 + 1).together())/2 > I get -log((-x + 2)/2)/2 > > > yet when doing: > > z = -exp((-x/2 + 1).together())/2 > I get -exp(-x/2 + 1)/2 > > > Is there any way to prevent the interior of the exp from de-togethering? > Using "evaluate=False" inside the exp does not work. > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
