def test_quo_z(): x = var('x') p = x**8 + x**6 - 3 * x**4 - 3 * x**3 + 8 * x**2 + 2 * x - 5 q = 3 * x**6 + 5 * x**4 - 4 * x**2 - 9 * x + 21 assert quo_z(p, -q, x) != pquo(p, -q, x) y = var('y') q = 3 * x**6 + 5 * y**4 - 4 * x**2 - 9 * x + 21 assert quo_z(p, -q, x) == pquo(p, -q, x)
def test_quo_z(): x = var('x') p = x**8 + x**6 - 3*x**4 - 3*x**3 + 8*x**2 + 2*x - 5 q = 3*x**6 + 5*x**4 - 4*x**2 - 9*x + 21 assert quo_z(p, -q, x) != pquo(p, -q, x) y = var('y') q = 3*x**6 + 5*y**4 - 4*x**2 - 9*x + 21 assert quo_z(p, -q, x) == pquo(p, -q, x)
def test_quo_z(): x = var("x") p = x ** 8 + x ** 6 - 3 * x ** 4 - 3 * x ** 3 + 8 * x ** 2 + 2 * x - 5 q = 3 * x ** 6 + 5 * x ** 4 - 4 * x ** 2 - 9 * x + 21 assert quo_z(p, -q, x) != pquo(p, -q, x)