[GAP Forum] Order Element

Alexander Hulpke ahulpke at gmail.com
Sun May 8 15:25:44 BST 2011


On May 8, 2011, at 8:11 AM, Sara Radfar wrote:

> Dear all
> 
> I have a question about order element a group if possible help me:
> How we can find the set order element a group?.For example we know the
> set of the order elements group A_5 is {1,2,3,5}.Thanks,

Define

AllElementOrders := G->Set(List(ConjugacyClasses(G),x->Order(Representative(x))));

Then AllElementOrders(G) returns what you want.

Best,

    Alexander Hulpke




More information about the Forum mailing list