1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

make perm_autsymbol use PermutationGroup

This commit is contained in:
kalmar 2017-05-15 09:53:22 +02:00
parent 26f49ce963
commit a04fea9a09

View File

@ -172,7 +172,8 @@ function change_pow(s::AutSymbol, n::Int)
if symbol ==
return flip_autsymbol(s.ex.args[2], pow=n)
elseif symbol == :σ
return perm_autsymbol(s.ex.args[2], pow=n)
G = PermutationGroup(length(s.ex.args[2]))
return perm_autsymbol(G(s.ex.args[2]), pow=n)
elseif symbol == :ϱ
s.ex.args[2:end-1]
return rmul_autsymbol(s.ex.args[2:end-1]..., pow=n)