From 5c4b3dd47c0af4702db2fcf35065a79258df6744 Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Tue, 4 Apr 2006 15:48:36 +0000 Subject: [PATCH] Bug in power::derivative. --- ginac/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/power.cpp b/ginac/power.cpp index 1e9b6849..cd72a629 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -583,7 +583,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.45.0