minpoly
Minimal polynomial of matrix
Syntax
minpoly(A)
minpoly(A,var)
>>syms x
>> A = [3 -3 2;-1 5 -2;-1 3 0]
>> minpoly(A, x)
ans = a^2 - 6*a + 8
factor
Prime factors
Syntax
f = factor(n)
>>syms a
>> A = [3 -3 2;-1 5 -2;-1 3 0]
>> factor(det(a*eye(size(A)) - A))
ans = [ a - 4, a - 2, a - 2]
网友评论