直到 1.3 版,這段代碼運行良好:from sympy import Intersection; from sympy import solveset; from sympy import S; from sympy.abc import x; from sympy.functions.elementary.miscellaneous import Min, Max; print Intersection([solveset(p, x, S.Reals) for p in [((((x + 2.0000) * 3.0000)+18.000000) > 0.000), ((((x + 2.0000) * 3.0000)+18.000000) < 1.000)]])我不知道如何使用新的Intersection,cf https://github.com/sympy/sympy/pull/16344
新的 sympy 交叉口用法
慕婉清6462132
2022-01-18 21:36:22