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 _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum