JoelSjogren icon

Untitled

JoelSjogren | PRO | 08/19/20 08:59:02 PM UTC | 0 ⭐ | 568 👁️ | Never ⏰ | []
text |

330 B

|

None

|

0 👍

/

0 👎

P = PolynomialRing(QQ, 'x', 6)
xs = x0,x1,x2,x3,x4,x5 = P.gens()
 def act_single(g, p):
  return p.subs({xs[i-1]: xs[j-1] for i, j in g.dict().items()})
 def act_all(G, p):
  return [act_single(g, p) for g in G]
 G = PermutationGroup([[(2,4,6,5,3)], [(1,2),(3,5),(4,6)]])
p = x0^2 + x0*x1
print(G[:10])
print(act_all(G, p)[:10])

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎