[GAP Forum] ConjugacyClasses function question

Sandeep Murthy sandeepr.murthy at gmail.com
Fri May 11 16:18:42 BST 2012


Hi,

cl2 := Filtered( ConjugacyClasses( G ), class -> Size( class ) = 2 );

will give you the list of conjugacy classes of size 2.  Then you 
can retrieve the elemtents of any class in this list by

Elements( cl2[1] );
Elements( cl2[2] );

etc.

Sincerely, Sandeep.


On 11 May 2012, at 16:04, Linda Cupples wrote:

> Hey,
> 
> I've been trying to find a way to determine the elements in each of the
> conjugacy classes that is given by gap,
> 
> My code is pretty much,
> 
> F:=FreeGroup("a","b");
> <free group on the generators [ a, b ]>
> a:=F.1;;b:=F.2;;
> G:=F/[a^4,b^4,(a*b)^2,(a^3*b)^2];
> 
> ConjugacyClasses(G);
> [ <identity ...>^G, a^G, b^G, a^2*b^2^G, a^2^G, a*b^G, a^3^G, a^2*b^G,
> b^2^G, a^3*b^G ]
> 
> List(ConjugacyClasses(G), Size);
> [ 1, 2, 2, 1, 1, 2, 2, 2, 1, 2 ]
> 
> 
> Is it possible to retrive the actual elements in each of the conjugacy
> classes of size 2? Instead of the output "a^G", a and its conjugate?
> 
> Thanks in advance
> 
> Linda
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum




More information about the Forum mailing list