1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

FPSymbol inversion

This commit is contained in:
kalmar 2017-05-11 18:23:01 +02:00
parent e2585b5733
commit 1c638e296c

View File

@ -94,6 +94,9 @@ end
(<=)(s::FPSymbol, t::FPSymbol) = s == t || s < t (<=)(s::FPSymbol, t::FPSymbol) = s == t || s < t
inv(s::FPSymbol) = change_pow(s, -s.pow)
function add_rel!{T<:FPSymbol}(G::FPGroup, w::GWord{T}) function add_rel!{T<:FPSymbol}(G::FPGroup, w::GWord{T})
if !(w in G.rels) if !(w in G.rels)
push!(G.rels, w) push!(G.rels, w)