[back] [prev] [next] [index] [root]

 


CharPoly

Computes the characteristic polynomial of an algebraic element, a matrix or an alff element

Syntax:

p := CharPoly (a [,PA]);
p := CharPoly (a [,O]);
p := CharPoly( M );

polynomial
  p  
polynomial algebra
  PA  
suborder
  O  
algebraic element alff order element
  a  
matrix
  M  

See also:  EltCharPolyAlffEltCharPolyMatCharPoly

Description:

For an algebraic element a in an Order O and a polynomial algebra PA over another order o or this order, this function computes the characteristic polynomial of a over o i.e. the returned polynomial is contained in PA. Given a matrix this function returns its characteristic polynomial For an alff element a in an order o in the alff F this function computes the characteristic polynomial of a over o


Example:


kash> o := Order(Z,2,2);
Generating polynomial: x^2 - 2

kash> a := Elt(o,[0,1]);
[0, 1]
kash> p := CharPoly(a);
x^2 - 2
kash> M := Mat(o,[[1,a],[1,-a]]);
[1 [0, 1]]
[1 [0, -1]]
kash> p := CharPoly(M);
> x^2 + [-1, 1]*x + [0, -2]


<- back[back] [prev] [next] [index] [root]