[GAP Forum] A simple question

Ramon Esteban-Romero resteban at mat.upv.es
Sat Jan 17 11:50:35 GMT 2009


Dear Levie, dear forum,

I have used

gap> Filtered(S, x -> ForAll(x, z -> 1^z=1));
[ [ (5,6), (2,3)(4,5), (3,5), (3,4), (2,3)(4,5), (2,6)(3,4), (4,5),
(2,4)(3,6) ] ]

Is this what you need? If you want to obtain just the first element of
this list, you can use First instead of Filtered. 

Best wishes,
-- 
Ramon <resteban at mat.upv.es>

Clau pública PGP/Llave pública PGP/Clef publique PGP/PGP public key:
         http://www.rediris.es/cert/servicios/keyserver/
         http://ttt.upv.es/~resteban/resteban.pgp
Telèfon/teléfono/téléphone/phone: (+34)963877007 ext. 76676

* Levie Bicua <lee_bkua at yahoo.com> [090117 12:39]:
> 
> Dear Gap forum,
> Let S be the set as defined below: 
>  
> S:=[ [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,4), (1,5), (2,5), (1,6)(4,5) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,4), (1,2)(3,6), (1,4)(2,3), (2,5)(3,6) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,4), (1,2,5)(3,6), (1,4)(2,3) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (2,3)(4,5), (1,5)(2,3), (1,3), (1,5)(4,6) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (2,3)(4,5), (2,6)(3,4), (4,5), (2,4)(3,6) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (2,3)(4,5), (1,5)(2,6,3,4), (4,5) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,4,5)(2,3), (1,3), (1,5)(4,6) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,5)(2,3), (2,6)(3,4), (1,5), (1,2)(3,6) ], 
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (1,5)(2,3), (1,5,4,2,6,3), (1,5) ], 
> [ (5,6), (2,3)(4,5), (3,5), (1,3)(2,6), (1,6)(3,5), (1,3), (1,5), (1,2)(4,6)] ];
>  
> Suppose from this set I will get only the element that does not have "1" in the cycle (i.e. in this particular example I want to get only this element:
> [ (5,6), (2,3)(4,5), (3,5), (3,4), (2,3)(4,5), (2,6)(3,4), (4,5), (2,4)(3,6) ] ), 
> how may I use GAP for this? Thanks.
>  
>  Levi
> 
> 
> 
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum



More information about the Forum mailing list