DegreeFFE( z ) or DegreeFFE( vec ) or DegreeFFE( mat )
DegreeFFE returns the degree of the smallest finite field F
containing the element z, respectively all elements of the vector vec
over a finite field (see Vectors), or matrix mat over a finite field
(see Matrices). For vectors and matrices, an error is signalled if the
smallest finite field containing all elements of the vector or matrix has
size larger than 2^{16}.
gap> DegreeFFE( Z(16)^7 );
4
gap> DegreeFFE( Z(16)^5 );
2
gap> DegreeFFE( [ Z(3), Z(27)^11, Z(9)^3 ] );
6
gap> DegreeFFE( [ [ Z(5), Z(125)^3 ], [ Z(625)^13, Z(5) ] ] );
Error, DegreeFFE: <z> must be a finite field element, vector, or matrix
# The smallest finite field which contains all four of these elements
# is too large for {\GAP}
GAP 3.4.4