]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
Fixed a bug introduced in last commit.
[ginac.git] / ginac / expairseq.cpp
index 88d986ea50f84d05be5b7e0922ff9f39c5f7627e..2649b4b8b6c28d51089c00fe012ed48dbe028e72 100644 (file)
@@ -375,28 +375,6 @@ ex expairseq::conjugate() const
        return result;
 }
 
-bool expairseq::is_polynomial(const ex & var) const
-{
-       if (is_exactly_a<add>(*this)) {
-               for (epvector::const_iterator i=seq.begin(); i!=seq.end(); ++i) {
-                       if (!(i->rest).is_polynomial(var)) {
-                               return false;
-                       }
-               }
-       }
-       else if (is_exactly_a<mul>(*this)) {
-               for (epvector::const_iterator i=seq.begin(); i!=seq.end(); ++i) {
-                       if (!(i->rest).is_polynomial(var) || !(i->coeff.info(info_flags::integer))) {
-                               return false;
-                       }
-               }
-       }
-       else {
-               return basic::is_polynomial(var);
-       }
-       return true;
-}
-
 bool expairseq::match(const ex & pattern, exmap & repl_lst) const
 {
        // This differs from basic::match() because we want "a+b+c+d" to