From 2893c8e04685b99317384ff02a0fefc899f499f9 Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Tue, 4 Apr 2006 14:11:21 +0000 Subject: [PATCH] Fix bug in differentiation of a power. --- ginac/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/power.cpp b/ginac/power.cpp index 95a01ace..0ebc8dc2 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -620,7 +620,7 @@ ex power::conjugate() const * @see ex::diff */ ex power::derivative(const symbol & s) const { - if (exponent.info(info_flags::real)) { + if (is_a(exponent)) { // D(b^r) = r * b^(r-1) * D(b) (faster than the formula below) epvector newseq; newseq.reserve(2); -- 2.44.0