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.Wed, 14 Sep 2016 03:20:45 +0200How to make group act on a set?https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/How to make group act on set? For example, the set is s A={1, 2} and the group is SymmetricGroup(3). I would like to calculate the output put each permutation map of elements of Symmetric Group so that I can calculate normaizer and stablizer.Sat, 10 Sep 2016 13:26:03 +0200https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/Answer by calc314 for <p>How to make group act on set? For example, the set is s A={1, 2} and the group is SymmetricGroup(3). I would like to calculate the output put each permutation map of elements of Symmetric Group so that I can calculate normaizer and stablizer.</p>
https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?answer=34797#post-id-34797To compute the group action you want:
G=SymmetricGroup(3)
A={1,2}
for g in G:
for a in A:
print str(g)+' acts on '+str(a)+' to give '+str(g(a))
Mon, 12 Sep 2016 04:07:51 +0200https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?answer=34797#post-id-34797Comment by B r u n o for <p>To compute the group action you want:</p>
<pre><code>G=SymmetricGroup(3)
A={1,2}
for g in G:
for a in A:
print str(g)+' acts on '+str(a)+' to give '+str(g(a))
</code></pre>
https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?comment=34802#post-id-34802I am not sure that this computes what the OP wants: you get for instance
(1,3,2) acts on 1 to give 3
while $3$ is not in A.Mon, 12 Sep 2016 19:37:17 +0200https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?comment=34802#post-id-34802Comment by sageuser for <p>To compute the group action you want:</p>
<pre><code>G=SymmetricGroup(3)
A={1,2}
for g in G:
for a in A:
print str(g)+' acts on '+str(a)+' to give '+str(g(a))
</code></pre>
https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?comment=34816#post-id-34816Yes, this is what I exactly want!! I didn't know the group elements could be used as function.Wed, 14 Sep 2016 03:20:45 +0200https://ask.sagemath.org/question/34792/how-to-make-group-act-on-a-set/?comment=34816#post-id-34816