matlab中多项式等表达式的因子分解或者提取公共因子的方法

1

s2=simple(s1);

从各种方法中自动选择最简格式返回s1的化简格式

2

【s2, how】=simple(s1)

返回采用的化简格式的形式

3

y=expand(x)扩展

y=factor()因式分解

y=collect()合并同类项

4mathmatica

提取表达式的公共因子

s=FactorTerms(s1);

s=factorterms(s2, exp1)

分解表达式为因子exp1和s的乘积