Sympy“不等”方程
有什么方法可以解决包含≠的代数方程式?
例如:2-x≠3
因此,看起来像这样:
print(solve(not_equal(2-x, 3)))
Is there any way to solve algebra equations that contain ≠?
for example: 2-x ≠ 3
So, may be it looks like this:
print(solve(not_equal(2-x, 3)))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
不等式
类来表示“不相等”或其别名ne
。例如:You can use the
Unequality
class to represent the "not equal", or its aliasNe
. For example:您应该求解==等式,并在真实中对解决方案进行补充。
您也可以尝试解决Intequation< and>并进行解决方案集合。
You should solve the == equation and take complement of the solution in the reals.
You can also try to solve inequation < and > and take the union of the solution sets.