something like 2/3*a is no longer printed as (2/3)*a
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 6 Apr 2001 23:39:47 +0000 (23:39 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Fri, 6 Apr 2001 23:39:47 +0000 (23:39 +0000)
ginac/add.cpp
ginac/mul.cpp

index 0dd7dc9c32ce3bff35a45cf1fa048e1195a8d437..cfcae9bc14640638a88531e149141a6ceec6aeb2 100644 (file)
@@ -192,9 +192,9 @@ void add::print(const print_context & c, unsigned level) const
                            !coeff.is_equal(_num_1())) {
                                if (coeff.is_rational()) {
                                        if (coeff.is_negative())
-                                               (-coeff).print(c, precedence);
+                                               (-coeff).print(c);
                                        else
-                                               coeff.print(c, precedence);
+                                               coeff.print(c);
                                } else {
                                        if (coeff.csgn() == -1)
                                                (-coeff).print(c, precedence);
index 82b721e323b9341afe336955a7ddab739c295c36..b42fcfe4284f22c5bb3be0206847ca144a0430df 100644 (file)
@@ -192,9 +192,9 @@ void mul::print(const print_context & c, unsigned level) const
                        !coeff.is_equal(_num_1())) {
                        if (coeff.is_rational()) {
                                if (coeff.is_negative())
-                                       (-coeff).print(c, precedence);
+                                       (-coeff).print(c);
                                else
-                                       coeff.print(c, precedence);
+                                       coeff.print(c);
                        } else {
                                if (coeff.csgn() == -1)
                                        (-coeff).print(c, precedence);