11 lines
467 B
Diff
11 lines
467 B
Diff
# sympy__sympy-15609
|
|
# Loki Mode Multi-Agent Patch
|
|
# Attempts: 1
|
|
|
|
--- a/sympy/printing/latex.py
|
|
+++ b/sympy/printing/latex.py
|
|
@@ -1438,7 +1438,7 @@ def _print_MatrixElement(self, expr):
|
|
- return self.parenthesize(expr.parent, PRECEDENCE["Atom"], strict=True) \
|
|
- + '_{%s, %s}' % (expr.i, expr.j)
|
|
+ return self.parenthesize(expr.parent, PRECEDENCE["Atom"], strict=True) \
|
|
+ + '_{%s, %s}' % (self._print(expr.i), self._print(expr.j))
|