From: Chris Dams Date: Tue, 4 Apr 2006 14:11:21 +0000 (+0000) Subject: Fix bug in differentiation of a power. X-Git-Tag: release_1-4-0~100 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=2893c8e04685b99317384ff02a0fefc899f499f9;ds=sidebyside Fix bug in differentiation of a power. --- 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);