variable search optimization

This commit is contained in:
2026-04-27 09:37:36 +02:00
parent a6d4647105
commit 093a887358
3 changed files with 11 additions and 6 deletions
+3
View File
@@ -4,6 +4,9 @@ def pretty_print(poly):
x_terms = []
mixed_terms = []
if isinstance(poly, int):
return str(poly)
has_const = bool(poly.constant_coefficient())
for monom in poly: