コード例 #1
0
def test_euclid_q():
    x = var('x')

    p = x**3 - 7*x + 7
    q = 3*x**2 - 7
    assert euclid_q(p, q, x)[-1] == -sturm(p)[-1]
コード例 #2
0
def test_euclid_q():
    x = var('x')

    p = x**3 - 7 * x + 7
    q = 3 * x**2 - 7
    assert euclid_q(p, q, x)[-1] == -sturm(p)[-1]