> < ^ Date: Mon, 16 Jan 1995 12:25:00 -0700
> < ^ From: Frank Celler <frank.celler@math.rwth-aachen.de >
> ^ Subject: polynomials

Dear Chris,

you wrote:

I am trying to use WORD functions on the elements of a finitely
presented group - but perhaps this is not allowed?

This is allowed, but the printing of words is confusing (to say the
least). We will try to change this in the next GAP release.

Back to the problem:

gap> el := Elements(S3);
[ IdWord, F.1, F.2, F.1*F.2, F.2*F.1, F.2^2 ]
gap> w := el[4];
gap> MappedWord( w, [F.1,F.2], [F.3,F.4] );

<w> is an element of <S3> and not of <F> *although* the printing suggests
otherwise. The string used to print an abstract word has no meaning
for GAP. In order to replace <S3>.1 (which is printed as "F.1"!) by
<S3>.3 one has to use

gap> w;
gap> MappedWord( w, [S3.1], [S3.3] );

The same is true for

gap> Position(gens,F.1);
gap> Position(gens,el[2]);
false                              !! and here I expected:  1

<el>[2] is *not* equal <F>.1 although it is printed in the same way.

best wishes

> < [top]