On Oct 1, 9:06 pm, Rafael <rvf0...@gmail.com> wrote: > 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)]
Compute the stabilizer of 12 and compose with (1,12). -- 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