ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 04 Feb 2016 02:22:33 +0100Get abelian group element powers.https://ask.sagemath.org/question/32435/get-abelian-group-element-powers/ I have the abelian group (let's say, $Z_5^2$). I want to represent its Cayley graph as a grid, in which the element $a^i b^j$ occupies the $[i,j]$ position in the plane. For that, I need would need a method `.pos()`. which did the following.
A = groups.presentation.FGAbelian([n,n]);
e=A[2]
-->e=a*b*a^-1
e.pos()
--> [0,1]
How can I create something like that?Thu, 04 Feb 2016 02:22:33 +0100https://ask.sagemath.org/question/32435/get-abelian-group-element-powers/