Another bug with PermutationGroup:

{{
g1,g2 = PermutationGroup([(1,2,3,4), (1,3,2,4)]).gens()
(g1*g2)(3), g1(g2(3))
}}

should gives two times the same result, but it is not the case...
The action of the group on {1,2,3,4} is not an action !

Le lundi 15 juin 2020 16:58:18 UTC+2, Paul Mercat a écrit :
>
> Hi !
>
> Sage doesn't compute correctly the matrix of a Permutation:
>
> matrix(Permutation('(1,2,3,4)'))
>
> return a wrong answer: it returns the inverse of the correct result.
> The product of matrices of permutations must be equal to the matrix of the 
> composition.
>
> If we do:
>
> PermutationGroup([(1,2,3,4)]).gens()[0].matrix()
>
> then we get the correct result.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e4095a01-08f8-4aa1-924d-2c4494aeddd3o%40googlegroups.com.

Reply via email to