如何根据Python中的参数求解具有3个未知数和2个方程的系统
我有以下两个方程式。我想参数求解此系统。
1.182 * a == 4.0 * b + 4.0
a^2 == 4.0 * b * c + 4.0
可以通过MATLAB使用下面的函数来解决它。它解决了b和c。
sol = solve(prob,[b,c]);
结果:
b: 0.2956 * a - 1.0
c: (5.629e+14 * a^2 - 2.252e+15) / (6.656e+14 * a - 2.252e+15)
如何在Python中获得相同的结果。我找不到类似的功能。
I have these two equation below. I want to solve this system parametrically.
1.182 * a == 4.0 * b + 4.0
a^2 == 4.0 * b * c + 4.0
It is possible to solve it via MATLAB with the function below. It solves b and c with respect to a.
sol = solve(prob,[b,c]);
result:
b: 0.2956 * a - 1.0
c: (5.629e+14 * a^2 - 2.252e+15) / (6.656e+14 * a - 2.252e+15)
How can I get the same result in python. I couldn't find a similar function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行后,
我们获得:
Upon running
we obtain: