variable search optimization
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user