Source

pynac-patches / minus_denom.patch

# HG changeset patch
# Parent 7c8f3e86fb73f715bebdc59aac676c8cc195799d
diff --git a/ginac/mul.cpp b/ginac/mul.cpp
--- a/ginac/mul.cpp
+++ b/ginac/mul.cpp
@@ -1500,7 +1500,8 @@
 		for (epvector::iterator cit = seq_sorted.begin();
 				cit != seq_sorted.end(); ++cit) {
 			if (is_exactly_a<add>(cit->rest) &&
-					cit->coeff.is_equal(_ex1) && 
+					(cit->coeff.is_equal(_ex1) || 
+					 cit->coeff.is_equal(_ex_1)) && 
 					ex_to<add>(cit->rest).\
 					has_leading_minus()) {
 				overall_coeff_print *= _ex_1;