Cancel
Usage
• Cancel[expr] 消去expr的分子和分母的公因子。
Notes
• 例如: Cancel[(x^2-1)/(x-1)]  . • Cancel 是可列表的. • Cancel[expr] 消去expr的分子和分母的最大公约数。 • Cancel[expr, Modulus->p] 产生一个模 p的结果. • Cancel[expr, Extension->Automatic]允许运算在expr中的代数数上执行。 • Cancel[expr, Trig -> True] 把三角函数处理为指数有理函数,并相应操作他们。
• 参见 Mathematica 全书: 节 1.4.5 and 节 3.3.3.
Further Examples
This cancels common factors in each fraction.
In[1]:=
|
Out[1]=
|
This cancels over the integers modulo .
In[2]:=
|
Out[2]=
|
To cancel out common factors in the numerator and denominator, you can set Extension to Automatic.
In[3]:=
|
Out[3]=
|
In[4]:=
|
Out[4]=
|
|