MathTop

expand 函数

展开乘积和幂。

语法

  • expand(expr)

参数与选项

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

示例

  1. 多项式展开expand((x + 1)^3)返回 x^3 + 3*x^2 + 3*x + 1。