pretty print change
This commit is contained in:
1 parent
be23eb3bcc
commit
827b533991
1 file changed
+1
-5
@@ -6,8 +6,6 @@ def pretty_print(poly):
|
||||
x_terms = []
|
||||
mixed_terms = []
|
||||
|
||||
has_const = bool(poly.constant_coefficient())
|
||||
|
||||
for monom in poly:
|
||||
vars_in_term = [str(v) for v in monom.variables()]
|
||||
|
||||
@@ -28,10 +26,8 @@ def pretty_print(poly):
|
||||
|
||||
parts = []
|
||||
|
||||
if R_terms or (has_const and not r_terms):
|
||||
if R_terms:
|
||||
parts.append("f(Ri)")
|
||||
elif has_const:
|
||||
parts.append("1")
|
||||
|
||||
if r_terms:
|
||||
parts.append("f(ri)")
|
||||
|
||||
Reference in new issue
Block a user