mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-07-17 10:55:33 +02: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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user