Skip to content

Commit

Permalink
Adding a doctest calling ascii_art on a Heisenberg Lie algebra element.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Sep 1, 2023
1 parent ecbe4d0 commit 098ce29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/algebras/lie_algebras/heisenberg.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def _ascii_art_term(self, m):
p1
sage: H._ascii_art_term('z')
z
sage: ascii_art(sum(i * b for i, b in enumerate(H.basis())))
p2 + 2*p3 + 3*q1 + 4*q2 + 5*q3 + 6*z
"""
from sage.typeset.ascii_art import ascii_art
return ascii_art(m)
Expand Down

0 comments on commit 098ce29

Please sign in to comment.