Skip to content

Commit

Permalink
adding subscript and superscript
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera authored Nov 11, 2024
1 parent c389a3d commit 65b8a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/printing/pretty/stringpict.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def subindex(self, index):
"""
with_self = self.width()
width_index = index.width()
extended_self = self.right(width_subindex*stringPict(" "))
extended_self = self.right(width_index*stringPict(" "))
index = index.left(width_self*stringPict(" "))
return extended_self.bellow(index)

Expand All @@ -345,7 +345,7 @@ def superindex(self, index):
"""
with_self = self.width()
width_index = index.width()
extended_self = self.right(width_subindex*stringPict(" "))
extended_self = self.right(width_index*stringPict(" "))
index = index.left(width_self*stringPict(" "))
return extended_self.above(index)

Expand Down

0 comments on commit 65b8a72

Please sign in to comment.