]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.cpp
- Complete revamp of methods in class matrix. Some redundant (and poor)
[ginac.git] / ginac / power.cpp
index fc52a5f814684845d23ba427fcf4216389fce14e..53cafc52e6b64f15e4c73eb730e2482a00f0bd61 100644 (file)
@@ -525,11 +525,10 @@ ex power::derivative(const symbol & s) const
 {
     if (exponent.info(info_flags::real)) {
         // D(b^r) = r * b^(r-1) * D(b) (faster than the formula below)
-        //return mul(mul(exponent, power(basis, exponent - _ex1())), basis.diff(s));
         epvector newseq;
         newseq.reserve(2);
         newseq.push_back(expair(basis, exponent - _ex1()));
-        newseq.push_back(expair(basis.diff(s),_ex1()));
+        newseq.push_back(expair(basis.diff(s), _ex1()));
         return mul(newseq, exponent);
     } else {
         // D(b^e) = b^e * (D(e)*ln(b) + e*D(b)/b)