1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

actually (<) and (<=) for FPSymbols were never used

This commit is contained in:
kalmar 2017-05-11 18:25:23 +02:00
parent 5f90c0c7b1
commit 8dd4d96b6f

View File

@ -87,12 +87,7 @@ function (==)(s::FPSymbol, t::FPSymbol)
return true
end
function (<)(s::FPSymbol, t::FPSymbol)
isone(s) && return true
return s.str == t.str && s.pow < t.pow
end
(<=)(s::FPSymbol, t::FPSymbol) = s == t || s < t
inv(s::FPSymbol) = change_pow(s, -s.pow)