X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fpower.cpp;h=cd72a629be7b10a3d2c40888d8d182ad357b9aea;hb=5c4b3dd47c0af4702db2fcf35065a79258df6744;hp=1e9b6849e88cf40f8900e7d7ba1b42cf0f073bcc;hpb=ab35f91d372470d9130aad65f9e825657aa2b2d9;p=ginac.git 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);