On Fri, Mar 1, 2019 at 4:25 PM Jeremy Martin <[email protected]>
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.

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].
> 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.
>

-- 
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