// check/poly_gcd.cpp /* Some test with polynomial GCD calculations. See also the checks for * rational function normalization in normalization.cpp. */ #include const int MAX_VARIABLES = 5; static symbol x("x"), z("z"); static symbol y[MAX_VARIABLES]; // GCD = 1 static unsigned poly_gcd1(void) { for (int v=1; v<=MAX_VARIABLES; v++) { ex e1 = x; ex e2 = pow(x, 2); for (int i=0; i