[GAP Forum] List of elements

Alexander Hulpke ahulpke at gmail.com
Thu Jan 27 16:15:04 GMT 2011


Dear Gap-Forum

On Jan 27, 2011, at 1:43 AM, Alireza Abdollahi wrote:
> gap> ele:=Elements(W);;
> gap>x:=ele[4];
> gap>y:=ele[228];
> 
> Here are my questions:
> 
> should I get the same x and y as the  first time? if so, is this a general rule 
> (at least for the above commands)?

`Elements' does the same as `AsSSortedList', i.e. it returns a sorted list of elements. As comparison of permutations is stable, this list will always be the same, even if you change the generators of W.

(In general, with other commands in GAP the same sequence of commands from the start in the same version of GAP on the same machine will always produce the same output, but this is not neccessarily guaranteed to stay stable over different versions.)

Best,

   Alexander Hulpke




-- Colorado State University, Department of Mathematics,
Weber Building, 1874 Campus Delivery, Fort Collins, CO 80523-1874, USA
email: hulpke at math.colostate.edu, Phone: ++1-970-4914288
http://www.math.colostate.edu/~hulpke





More information about the Forum mailing list