D.3.2.8 charpoly
................
Procedure from library linalg.lib (see linalg_lib).

Usage:
charpoly(A[,v]); A square matrix, v string, name of a variable

Return:
poly, the characteristic polynomial det(E*v-A)

(default: v=name of last variable)

Note:
A must be independent of the variable v. The computation uses det.
If printlevel>0, det(E*v-A) is diplayed recursively.

Example:
LIB "linalg.lib";
ring r=0,(x,t),dp;
matrix A[3][3]=1,x2,x,x2,6,4,x,4,1;
print(A);
charpoly(A,"t");

<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
