Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5812

Re: how do you prevent numerator expansion when using 'Together'?

From dimitris <dimmechan@yahoo.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: how do you prevent numerator expansion when using 'Together'?
Date 2011-10-23 10:29 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j80q9n$adf$1@smc.vnet.net> (permalink)
References <j7u4u8$t7b$1@smc.vnet.net>

Show all headers | View raw


On Oct 22, 1:12 pm, Dushan Mitrovich <dush...@nnips.net> wrote:
> I'm using Mathematica 8.  When using 'Together' on an expression the numerator
> is always expanded, complicating the appearance of the final result:
>
>      In:  Together[ (a+b)/d + ((a+b)*(e+f))/(d*g) ]
>      Out: 1/(d*g) * (a*g + b*g + a*e + b*e + a*f + b*f)
>
> Instead, I'd much prefer the simpler form
>           1/(d*g) * (a+b)*(g+e+f)
>
> What do I need to do to get the latter form?  Thanks.
>
> - Dushan
>    [ reverse the middle word of address to reply ]

In version 5.2 you can use

In[11]:=
Simplify[Together[(a + b)/d + ((a + b)*(e + f))/(d*g)]]

Out[11]=
((a + b)*(e + f + g))/(d*g)

Dimitris

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

how do you prevent numerator expansion when using 'Together'? Dushan Mitrovich <dushanm@nnips.net> - 2011-10-22 10:12 +0000
  Re: how do you prevent numerator expansion when using 'Together'? dimitris <dimmechan@yahoo.com> - 2011-10-23 10:29 +0000

csiph-web