1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-07-17 02:50:32 +02:00

no arithmetic on GSymbols is allowed

This commit is contained in:
kalmar 2017-05-11 17:58:19 +02:00
parent c03f7bb895
commit a7c91bf858

View File

@ -153,7 +153,8 @@ function power_by_squaring{T}(x::GWord{T}, p::Integer)
end end
(^)(x::GWord, n::Integer) = power_by_squaring(x,n) (^)(x::GWord, n::Integer) = power_by_squaring(x,n)
(^){T<:GSymbol}(x::T, n::Integer) = GWord(x)^n
###############################################################################
function inv{T}(W::GWord{T}) function inv{T}(W::GWord{T})
if length(W) == 0 if length(W) == 0