FPSymbol inversion

This commit is contained in:
kalmar 2017-05-11 18:23:01 +02:00
parent e2585b5733
commit 1c638e296c
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ end
(<=)(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})
if !(w in G.rels)
push!(G.rels, w)