NumberAlgebraElement( a )
returns the number n such that the element a of the finitely presented
algebra A is the n-th element of A in the sense of ElementAlgebra,
that is, a = ElementAlgebra( A, n )
.
gap> a:= FreeAlgebra( GF(2), 2 );; gap> NumberAlgebraElement( ( a.1 + a.one )^4 ); 32769 gap> NumberAlgebraElement( a.zero ); 0 gap> NumberAlgebraElement( a.one ); 1
Note that A.field
must be finite.
GAP 3.4.4