Skip to content

Commit

Permalink
Fix the ascii art for the Heisenberg Lie algebras.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Sep 1, 2023
1 parent 6695bec commit ecbe4d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/sage/algebras/lie_algebras/heisenberg.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ def _repr_term(self, m):
"""
return m

def _ascii_art_term(self, m):
r"""
Return a string representation of the term indexed by ``m``.
EXAMPLES::
sage: H = lie_algebras.Heisenberg(QQ, 3)
sage: H._ascii_art_term('p1')
p1
sage: H._ascii_art_term('z')
z
"""
from sage.typeset.ascii_art import ascii_art
return ascii_art(m)

def _latex_term(self, m):
r"""
Return a string representation of the term indexed by ``m``.
Expand Down

0 comments on commit ecbe4d0

Please sign in to comment.