Commits

Volker Braun committed 2a722b4

more fixes

Comments (0)

Files changed (1)

trac_9880_reviewer-vb.patch

 # HG changeset patch
 # Parent 27f7d36cd929d8841c83da1da33ca442db37777a
+# HG changeset patch
+# Parent 27f7d36cd929d8841c83da1da33ca442db37777a
+
+Trac #9880: Pynac update
+
+I reworked the order code to use references instead of pointers, this 
+is C++ and not C code after all.
+
+Also, bug fixes to my own infinities code.
 
 diff --git a/ginac/add.cpp b/ginac/add.cpp
 --- a/ginac/add.cpp
 diff --git a/ginac/power.cpp b/ginac/power.cpp
 --- a/ginac/power.cpp
 +++ b/ginac/power.cpp
-@@ -476,10 +476,7 @@
+@@ -476,10 +476,10 @@
  		if (eexponent.info(info_flags::negative))
  			return _ex0;
  		if (eexponent.info(info_flags::positive))
 -			if (basis_inf.is_plus_infinity())
 -				return Infinity;
--			else
++			if (basis_inf.is_unsigned_infinity())
++				return UnsignedInfinity;
+ 			else
 -				return UnsignedInfinity;
-+			return mul(pow(basis_inf.get_direction(), eexponent), Infinity);
++				return mul(pow(basis_inf.get_direction(), eexponent), Infinity);
  		throw(std::domain_error("power::eval(): pow(Infinity, c)"
  					" for constant of undetermined sign is not defined."));
  	}
-@@ -493,7 +490,11 @@
+@@ -493,7 +493,11 @@
  			throw(std::domain_error("power::eval(): pow(f(x), infinity) is not defined."));
  		// x^(c*oo) --> (x^c)^(+oo)
  		const ex abs_base = abs(pow(ebasis, exp_inf.get_direction()));