Date: Dec 29, 2012 2:58 AM Author: Triet Subject: Rank of root I know Matlab has "factor" to factor an equation, but is there any function or any way to do this in Matlab:

-Input: an equation ex: x^3 -8*x^2 + 20*x -16

-Output:

+the equation factored, ex: (x - 4)*(x - 2)^2

+Solve the equation, ex: x1=4; x2=2

+Most important: show the rank of each root (the power of each inner expression) , ex: root 1 = 4 has rank = 1; root 2 = 2 has rank = 2