On Friday, March 1, 2019 at 4:00:29 PM UTC-6, David Joyner wrote:
>
>
>
> On Fri, Mar 1, 2019 at 4:25 PM Jeremy Martin <[email protected] 
> <javascript:>> wrote:
>
>> The weak_covers method gives incorrect answers:
>>
>> sage: for w in Permutations(3):
>> ....:     w, w.weak_covers()
>> ....:
>> ([1, 2, 3], [])
>> ([1, 3, 2], [[1, 2, 3]])
>> ([2, 1, 3], [[1, 2, 3]])
>> ([2, 3, 1], [[3, 2, 1]])
>> ([3, 1, 2], [[3, 2, 1]])
>> ([3, 2, 1], [[3, 1, 2], [2, 3, 1]])
>>
>> The fourth and fifth lines of the output are incorrect.  The correct 
>> values should be
>>
>> ([2, 3, 1], [[2, 1, 3]])
>> ([3, 1, 2], [[1, 3, 2]])
>>
>>
> Aren't these the same as the fourth and fifth lines of the output ?
> Maybe I'm misinterpreting the permutation notation.
>

The output of w.weak_covers() is a list of permutations in one-line 
notation (rather than cycle notation).  So the fourth and fifth lines I 
gave really are different from the output (and, as another example, the two 
permutations in line six are distinct -- although that output is correct).

 

>
> Similarly:
>>
>> sage: for w in Permutations(3):
>> ....:     w, w.weak_covers(side='left')
>> ....:
>> ([1, 2, 3], [])
>> ([1, 3, 2], [[1, 2, 3]])
>> ([2, 1, 3], [[1, 2, 3]])
>> ([2, 3, 1], [[3, 2, 1]])
>> ([3, 1, 2], [[3, 2, 1]])
>> ([3, 2, 1], [[2, 3, 1], [3, 1, 2]])
>>
>> The fourth and fifth lines should be
>>
>> ([2, 3, 1], [[1, 3, 2]])
>> ([3, 1, 2], [[2, 1, 3]])
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to