up previous next
CharPoly

characteristic polynomial of a matrix

Syntax
CharPoly(M:MAT, X:POLY):LIST

Description
X is an indeterminate, and M is a square matrix whose entries do not involve X.

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

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