Ejemplo n.º 1
0
def test_quintics_2():
    f = x**5 + 15*x + 12
    s = solve(f, check=False)
    for root in s:
        res = f.subs(x, root.n()).n()
        assert tn(res, 0)

    f = x**5 - 15*x**3 - 5*x**2 + 10*x + 20
    s = solve(f)
    for root in s:
        assert root.func == RootOf
Ejemplo n.º 2
0
def test_quintics_2():
    f = x**5 + 15 * x + 12
    s = solve(f, check=False)
    for root in s:
        res = f.subs(x, root.n()).n()
        assert tn(res, 0)

    f = x**5 - 15 * x**3 - 5 * x**2 + 10 * x + 20
    s = solve(f)
    for root in s:
        assert root.func == RootOf