See Centralizer in the on-line help. Steve
> On 15 May 2015, at 12:06, abdulhakeem alayiwola <lovepgro...@gmail.com> wrote: > > Dear forum, > If B is a subgroup of a group A and i wish to define a function such that > i get only the elements of A that commutes with all elements of B. how can > this be done using GAP. > Thanks. > Best regards. > _______________________________________________ > Forum mailing list > Forum@mail.gap-system.org > http://mail.gap-system.org/mailman/listinfo/forum _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum