Home Online Manual
Top
Back: moebius
Forward: arrPoincare
FastBack: algemodstd_lib
FastForward: brillnoether_lib
Up: arr_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.2.40 arrCharPoly

Procedure from library arr.lib (see arr_lib).

Usage:
arrCharPoly(arr A)

Return:
[intvec] coefficients of the characteristic polynomial of A in incresing order

Remarks:
The algorithm only returns the coefficients of the characteristic polynomial since they are whole numbers but the basering could be something different.

Example:
 
LIB "arr.lib";
ring R = 0,(x,y,z,u,v),dp;
arr A = arrBraid(5);
intvec v = arrCharPoly(A);
x*(x-1)*(x-2)*(x-3)*(x-4);
==> x5-10x4+35x3-50x2+24x
v;
==> 24,-50,35,-10,1
See also: arrCharPoly; arrPoincare.