2 * Check for inconsistency in power::is_polynomial
10 static void do_test(const ex& e, const ex& s)
12 if (e.is_polynomial(s))
14 cerr << "*** Error: is_polynomial() says \"" << e << "\""
15 << "is not a polynomial in \"" << s << "\"" << endl;
16 throw std::logic_error("bug in is_polynomial()");
19 int main(int argc, char** argv)
21 cout << "checking for bugs in is_polynomial()... " << flush;
22 symbol x("x"), s("s");
24 ex g = pow(2, x) + 2*s;
27 cout << " OK, not found." << endl;