mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2025-03-08 07:01:43 +01:00
no arithmetic on GSymbols is allowed
This commit is contained in:
parent
c03f7bb895
commit
a7c91bf858
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user