pretty print fix

This commit is contained in:
2026-04-23 09:38:26 +02:00
parent 827b533991
commit 4386cb72e9
+5 -2
View File
@@ -1,11 +1,11 @@
def pretty_print(poly):
ring = poly.parent()
R_terms = []
r_terms = []
x_terms = []
mixed_terms = []
has_const = bool(poly.constant_coefficient())
for monom in poly:
vars_in_term = [str(v) for v in monom.variables()]
@@ -26,6 +26,9 @@ def pretty_print(poly):
parts = []
if has_const:
parts.append("1")
if R_terms:
parts.append("f(Ri)")