no arithmetic on GSymbols is allowed

This commit is contained in:
kalmar 2017-05-11 17:58:19 +02:00
parent c03f7bb895
commit a7c91bf858
1 changed files with 2 additions and 1 deletions

View File

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