亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

新的 sympy 交叉口用法

新的 sympy 交叉口用法

慕婉清6462132 2022-01-18 21:36:22
直到 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
查看完整描述

1 回答

?
不負相思意

TA貢獻1777條經驗 獲得超10個贊

找到了解決方案:我必須使用 -operator 解壓縮Intersection參數*

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)]])



查看完整回答
反對 回復 2022-01-18
  • 1 回答
  • 0 關注
  • 166 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號