up previous next
CharPoly

characteristic polynomial of a matrix

Syntax
CharPoly(M: MAT, X: RINGELEM): RINGELEM

Description
X is an indeterminate, and M is a square matrix whose entries are in the coefficient ring of X.

This function returns the characteristic polynomial of M in the indeterminate X. See also MinPoly .

Example
/**/  Use R ::= QQ[x];
/**/  CharPoly(matrix([[1,2,3],[4,5,6],[7,8,9]]), x);
x^3 -15*x^2 -18*x

See Also