Ask Your Question

Revision history [back]

This is not my field, but it seems you can do

sage: sigma = Permutation(map(lambda x: x.element, p))
sage: sigma(2)
4

This is not my field, but it seems you can do

sage: sigma = Permutation(map(lambda x: x.element, p))
sage: sigma
[1, 4, 2, 3]
sage: sigma(2)
4

This is not my field, but it seems you can do

sage: map(lambda x: x.element, p)
[1, 4, 2, 3]
sage: sigma = Permutation(map(lambda x: x.element, p))
sage: sigma
[1, 4, 2, 3]
sage: sigma(2)
4