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

 


Trace

Computes the trace of an algebraic number or alff element or a matrix

Syntax:

n := Trace(a);
n := Trace(b, o);

algebraic element | alff elt | matrix | ff element
  a  
algebraic element | ff element
  b  
order
  o  

Description:

Depending on the type of a the trace of an algebraic element, alff element or matrix is computed.


Example:

All examples take place in {\Bbb Q}(\sqrt5):

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

kash> Trace(Elt(o, [1, 2]));
> 2


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