1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-04 02:50:28 +01:00

add separating dot between indices

This commit is contained in:
Marek Kaluba 2023-05-25 12:19:30 +02:00
parent 126c8bbc22
commit eacb32af68
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
2 changed files with 2 additions and 7 deletions

View File

@ -14,12 +14,7 @@ end
λ(i, j) = Transvection(, i, j)
function Base.show(io::IO, t::Transvection)
id = if t.id === :ϱ
'ϱ'
else # if t.id === :λ
'λ'
end
print(io, id, subscriptify(t.i), '.', subscriptify(t.j))
print(io, t.id, subscriptify(t.i), '.', subscriptify(t.j))
return t.inv && print(io, "^-1")
end

View File

@ -23,7 +23,7 @@ end
function Base.show(io::IO, s::ElementarySymplectic)
i, j = Groups.subscriptify(s.i), Groups.subscriptify(s.j)
print(io, s.symbol, i, j)
print(io, s.symbol, i, '.', j)
return !isone(s.val) && print(io, "^$(s.val)")
end