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:30:48 +0100Get vector from abelian grouphttps://ask.sagemath.org/question/32436/get-vector-from-abelian-group/ I want to represent the Cayley graph of an abelian group (let's say $A=Z_5^2$) is a way that the element $g=a^i b^j$ is in the position $[i,j]$. I need a method `.pos()`such that:
A= groups.presentation.FGAbelian([n,n]);
g=A[2]
---> g = a*b*a^-1
g.pos()
---> [0,1]
How could I do that?
MLainzThu, 04 Feb 2016 02:30:48 +0100https://ask.sagemath.org/question/32436/