Together
Usage
• Together[expr]把各项放到一个具有共同分母的和式,消去结果中的因子。
Notes
• 例如: Together[1/x + 1/(1-x)]  . • Together 使得项的和为一个单一有理函数。 • Together得到的结果的分母典型的是和式中每项分母的最小公倍数。 • 除非必须,Together避免展开分母。 • Together是Apart的逆。 • Together[expr, Modulus->p]产生一个模 p的结果。 • Together[expr, Extension->Automatic] 在expr中允许在代数数上执行运算。 • Together[expr, Trig -> True] 处理三角函数为指数的有理函数,并相应的操作它们。
Further Examples
Here is a simple example.
In[1]:=
|
Out[1]=
|
Here is another simple example.
In[2]:=
|
Out[2]=
|
Together explicitly makes it clear that this expression is indeterminate.
In[3]:=
|
Out[3]=
|
Together simplifies this nasty expression.
In[4]:=
|
Out[4]=
|
No cancellation is done here.
In[5]:=
|
Out[5]=
|
You can cancel out a common factor by setting the option Extension to Automatic.
In[6]:=
|
Out[6]=
|
Here are two modular examples.
In[7]:=
|
Out[7]=
|
In[8]:=
|
Out[8]=
|
|