MathTop

cancel 函数

约去有理表达式中的公共因子。

语法

  • cancel(expr)

参数与选项

expr要变换或求值的表达式。

示例

  1. 约去公共因子cancel((x^2 - 1)/(x - 1))在表达式有定义处返回 x + 1。