Hi François,
> I have some questions about semantics and typographics convention in :
>
> 1/ Permutation
> 2/ PermutationGroupElement
> 3/ permutations (with lower p)
> 4/ Permutations
>
> Suppose I don't know Sage. How can I imagine the design of each function ?
> What is the first (question
Hello,
I have some questions about semantics and typographics convention in :
1/ Permutation
2/ PermutationGroupElement
3/ permutations (with lower p)
4/ Permutations
Suppose I don't know Sage. How can I imagine the design of each function ?
What is the first (question or) answer I must get ?
I
.inverse() method for permutation group elements at
http://trac.sagemath.org/sage_trac/ticket/10911
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group
On 3/5/11 1:14 PM, Rob Beezer wrote:
On Mar 5, 3:34 am, Volker Braun wrote:
Though it would be nice if they could be merged :-)
+1, and I think that was KDC's suggestion above. For example:
sage: g = PermutationGroupElement([1,3,2])
sage: g.matrix()
[1 0 0]
[0 0 1]
[0 1 0]
sage: c = Perm
On Mar 5, 3:34 am, Volker Braun wrote:
> Though it would be nice if they could be merged :-)
+1, and I think that was KDC's suggestion above. For example:
sage: g = PermutationGroupElement([1,3,2])
sage: g.matrix()
[1 0 0]
[0 0 1]
[0 1 0]
sage: c = Permutation([1,3,2])
sage: c.to_matrix()
[1
You need to construct PermutationGroupElements if you want to use group
operations:
sage: P = PermutationGroupElement([(1,2,3,4,5)])
sage: P^2
(1,3,5,2,4)
The sage.combinat.Permutation stuff is presumably about the combinatorics of
permutations. Though it would be nice if they could be merged :
On Mar 5, 2:47 am, Rob Beezer wrote:
> Any thoughts on the following inconsistency? As near as I can tell,
> the inverse() method is being supplied by some code meant for
> combinatorics (words?). Should permutation elements be given their
> own inverse method?
>
> sage: S = SymmetricGroup(4
On Mar 5, 4:13 am, Tom Boothby wrote:
> Yes, and I think that Permutations should support exponentiation, too:
>
> sage: P = Permutation([1,2,3,4,5])
> sage: P^2
> Traceback (most recent call last):
> ...
> TypeError: unsupported operand type(s) for ** or pow():
> 'Permutation_class' and 'int'
>
On Mar 4, 3:13 pm, Tom Boothby wrote:
> Yes, and I think that Permutations should support exponentiation, too:
>
> sage: P = Permutation([1,2,3,4,5])
> sage: P^2
> Traceback (most recent call last):
> ...
> TypeError: unsupported operand type(s) for ** or pow():
> 'Permutation_class' and 'int'