Rafael <rvf0...@gmail.com> writes:

> Hi to all,
>
> Let us say that "reg" is a permutation group. I want to find the
> elements of reg that send 12 to 1. Is there a better way to do that (in
> one step, say) than:
>
> sage: def f(x): return x(12)==1
> ....: 
> sage: filter(f,reg.list())
> [(1,12)(2,5)(3,4)(6,7)(8,11)(9,10)]
>
> ?

I guess I did not explain myself correctly. I mean to ask if there is a
one-liner in Sage for this, such as the one in GAP:

Filtered(Elements(reg),x->12^x=1);

Context for this and my previous question can be found at:

http://rvfblog.wordpress.com/2010/10/01/is-the-franklin-graph-a-cayley-graph/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to