Like the subject says, but take for example:
(2/(3x)) + (6/x) + (x/(x + 3))
Sending to the kernel simply gives:
20/3x + x/(3+x)
What I wanted/hoped for was the common-denominator version:
(3x^2 + 20x + 60)/(3x(x+3))
Is there any way to get Mathematica to give the one-denominator
version of sums of fractions?
thanks,
cdj
?Together
Together[expr] puts terms in a sum over a common denominator, and
cancels \
factors in the result.
Regards
Jens
(60 + 20*x + 3*x^2)/ (3*x*(3 + x))
Bobby
On Wed, 9 Apr 2003 01:33:41 -0400 (EDT), cdj <a_cj...@hotmail.com> wrote:
> Hi,
>
> Like the subject says, but take for example:
>
> (2/(3x)) + (6/x) + (x/(x + 3))
>
> Sending to the kernel simply gives:
>
> 20/3x + x/(3+x)
>
> What I wanted/hoped for was the common-denominator version:
>
> (3x^2 + 20x + 60)/(3x(x+3))
>
> Is there any way to get Mathematica to give the one-denominator
> version of sums of fractions?
>
> thanks,
>
> cdj
>
>
--
maj...@cox-internet.com
Bobby R. Treat
(2/(3x)) + (6/x) + (x/(x + 3)) // Factor
Yas
Out[9]=
(63*x + 20*x^2)/(3*(3 + x))
K.
__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
thing = (2/(3x)) + (6/x) + (x/(x + 3))
Out[1]=
20/(3*x) + x/(3 + x)
In[2]:=
Together[thing]
Out[2]=
(60 + 20*x + 3*x^2)/(3*x*(3 + x))
Together can be a powerful tool when trying to obtain a specific form
of the result. Just be aware that it is sometimes very time consuming
(if not nearly impossible) to get Mathematica to return a final form
that exactly matches some desired form (say that is quoted in a text).
Adam Smith
a_cj...@hotmail.com (cdj) wrote in message news:<b70ck5$8al$1...@smc.vnet.net>...
Perfect - thanks a bunch everyone!
cdj
Out[1]=
20/(3*x) + x/(3 + x)
In[2]:=
Together[2/(3*x) + 6/x +
x/(x + 3)]
Out[2]=
(60 + 20*x + 3*x^2)/
(3*x*(3 + x))
Germán Buitrago A.
Manizales, Colombia