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

 


EltListToMat

Converts a list of algebraic numbers into a matrix of their coefficients.

Syntax:

M := EltListToMat(L);

matrix
  M  
matrix over the coefficient order of the elements of L
list
  L  
of algebraic numbers

See also:  EltMatToList

Description:

This procedure cares for the denominators of the elements.


Example:


kash> o := OrderMaximal(Order(Z,2,3));;
kash> O := Order(o,2,7);
      F[1]
        /
       /
   E1[1]
  /
 /
Q
F  [ 1]     x^2 - 7
E 1[ 1]     x^2 - 3

kash> alpha := Elt(O,[1,Elt(o,[0,1])]);
[1, [0, 1]]
kash> beta := Elt(O,[Elt(o,[0,2]),Elt(o,[1,1])]);
[[0, 2], [1, 1]]
kash> EltListToMat([alpha,beta]);
> [1 [0, 2]]
[[0, 1] [1, 1]]


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