【发布时间】:2020-04-29 18:03:35
【问题描述】:
我正在尝试将 dup_zz_mignotte_bound(f, K) 的结果与其他一些界限进行比较,但是当我添加 dup_zz_mignotte_bound 时,我未能在所有界限中使用变量 x。例如:
from sympy.polys import ring, ZZ
from sympy.abc import x
from sympy import factor
R, x = ring('x', ZZ)
poly = x**8 +8*x**7 +47*x**6 +136*x**5 +285*x**4 +171*x**3 - 20*x**2 - 21*x+2
print(factor(poly, x)) # this is an example of a function which is used in other bounds
p = R.dup_zz_mignotte_bound(poly) #Sympys function
print(p)
这会在尝试调用 factor() 时返回错误。我如何使用这两个功能? 非常感谢您的宝贵时间!
【问题讨论】: