mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +01:00
G.gens return parentless symbols; use generators(G);
This commit is contained in:
parent
6c312cfef3
commit
1e8c9468de
@ -62,6 +62,8 @@ change_pow(s::FPSymbol, n::Int) = FPSymbol(s.str, n)
|
||||
|
||||
length(s::FPSymbol) = abs(s.pow)
|
||||
|
||||
generators(G::FPGroup) = [G(FPGroupElem(g)) for g in G.gens]
|
||||
|
||||
function show(io::IO, G::FPGroup)
|
||||
print(io, "Finitely presented group on $(length(G.gens)) gens and $(length(G.rels)) relations:\n")
|
||||
print(io, "gens:\t", join([g.gen for g in G.gens], ","),"\n")
|
||||
|
Loading…
Reference in New Issue
Block a user