We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766c7a0 commit 2215f72Copy full SHA for 2215f72
src/sage/rings/polynomial/multi_polynomial_element.py
@@ -467,6 +467,8 @@ def _repr_(self):
467
sage: repr(-I*y - x^2) # indirect doctest
468
'-x^2 + (-I)*y'
469
"""
470
+ if self.is_gen():
471
+ return self.parent().variable_names()[self.degrees().nonzero_positions()[0]]
472
try:
473
key = self.parent().term_order().sortkey
474
except AttributeError:
0 commit comments