Source

pynac-patches / numerics.patch

Full commit
# HG changeset patch
# User Jean-Pierre Flori <flori@enst.fr>
# Date 1316538810 -7200
# Node ID d4992a1547a0bca9ddc223241da166c8452d7be7
# Parent  3e03b7d29795ff94f5f40f992ce95a2c4900ba83
Minor fix to correctly compare numerics

diff -r 3e03b7d29795 -r d4992a1547a0 ginac/order.cpp
--- a/ginac/order.cpp	Tue Sep 20 19:11:14 2011 +0200
+++ b/ginac/order.cpp	Tue Sep 20 19:13:30 2011 +0200
@@ -183,7 +183,7 @@
 							     static_cast<const fderivative&>(rh));
 		else
 			// using GiNaC functions by default
-			return -lh.compare_same_type(rh);
+			return lh.compare_same_type(rh);
 		
 	// at present numerics are combined into overall_coefficient
 	// even when hold parameter is used