How to get the Galois group as a permutation group
I was trying to convert a Galois group of a number field as a permutation group. I did this:
G=graphs.CycleGraph(5)
L=G.spectrum()
a = L
K, a_in_K, hom = number_field_elements_from_algebraics(a, minimal=True)
K.galois_group()
X.as_permutation_group()
However the last command returns error. Please help
Try
PermutationGroup(X.gens())instead.Thank you for the help. However it returns error when the group is trivial. Otherwise it works fine.
The case of trivial group works for me in SageMath version 10.9.beta7. What error do you get ?