>> syms x
>> factor((x-5)*(x+3)*(x+6)*(x-10)-20*x^2)
ans =
(x^2+3*x-30)*(x^2-9*x-30)
>> syms x y
>> factor(x^3-y^3+x*(x^2-y^2)+y*(x-y)^2)
ans =
x*(2*x+3*y)*(x-y)
>> syms a b c
>> factor(a^2*(b-c)+b^2*(c-a)+c^2*(a-b))
ans =
(b-c)*(-c+a)*(a-b)
>>
盗用别人答案,嘻嘻~~