[sage-support] Re: Trouble with PermutationGroupElement

2009-03-17 Thread Rob Beezer
It's even worse: sage: G=SymmetricGroup(8) sage: H=SymmetricGroup(2) sage: a=H('(1,2)') sage: b=G('(1,2)(3,4)') sage: a==b True I don't think any interpretation would suggest this behavior as correct. The problem is that the current compare only runs through checking equality of the images for

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread John H Palmieri
On Mar 16, 2:49 pm, Robert Bradshaw wrote: > On Mar 16, 2009, at 2:46 PM, John H Palmieri wrote: > > There's a whole thread on this topic... Which didn't really help me to decide one way or the other... > In any case, as the "Parent" has not been specified, I wouldn't want   > it to prevent the

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread Robert Bradshaw
On Mar 16, 2009, at 2:46 PM, John H Palmieri wrote: > On Mar 16, 2:40 pm, John H Palmieri wrote: >> On Mar 16, 2:26 pm, Robert Bradshaw >> wrote: >> >>> On Mar 16, 2009, at 2:25 PM, epple wrote: >> Actually I am getting the same result for other permutations, like: >> sage: h=Permutat

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread John H Palmieri
On Mar 16, 2:40 pm, John H Palmieri wrote: > On Mar 16, 2:26 pm, Robert Bradshaw > wrote: > > > On Mar 16, 2009, at 2:25 PM, epple wrote: > > > > Actually I am getting the same result for other permutations, like: > > > > sage: h=PermutationGroupElement('(1,3,2)') > > > sage: k=PermutationGroupE

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread John H Palmieri
On Mar 16, 2:26 pm, Robert Bradshaw wrote: > On Mar 16, 2009, at 2:25 PM, epple wrote: > > > Actually I am getting the same result for other permutations, like: > > > sage: h=PermutationGroupElement('(1,3,2)') > > sage: k=PermutationGroupElement('(1,2,3),(4,5)') > > sage: k^2==h,h==k^2 > > (Fal

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread Robert Bradshaw
On Mar 16, 2009, at 2:25 PM, epple wrote: > Actually I am getting the same result for other permutations, like: > > sage: h=PermutationGroupElement('(1,3,2)') > sage: k=PermutationGroupElement('(1,2,3),(4,5)') > sage: k^2==h,h==k^2 > (False, True) Hmm... looks like permutation groups aren't bein

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread epple
Actually I am getting the same result for other permutations, like: sage: h=PermutationGroupElement('(1,3,2)') sage: k=PermutationGroupElement('(1,2,3),(4,5)') sage: k^2==h,h==k^2 (False, True) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support

[sage-support] Re: Trouble with PermutationGroupElement

2009-03-16 Thread Robert Bradshaw
On Mar 16, 2009, at 1:27 PM, epple wrote: > I am slightly confused about Permutation groups. The following, I > think, is part of the problem. > Version: 3.4 (Sage on the web) > Code: > sage: h=PermutationGroupElement('()') > sage: k=PermutationGroupElement('(1,2)') > sage: k^2==h,h==k^2 > (False