如何在 Maple 中翻转方程(将左轴与右轴交换)?
我有一个方程,已简化为以下形式
eqn1 := f(x,y,z) = T;
现在我有另一个方程,其中 T 作为变量,
eqn2 := g(T,x,y,z);
我想在 中用
。如果我的表单中有 f(x)
替换 T
eqn2eqn1
eqn1better := T = f(x,y,z);
那么以下命令将执行我想要的操作。
algsubs(eqn1better, eqn2);
那么如何交换方程的左侧和右侧以将 eqn1
转换为 eqn1better
呢?
I have an equation which has been reduced to the form
eqn1 := f(x,y,z) = T;
Now I have another equation that involves T as a variable
eqn2 := g(T,x,y,z);
I want to replace T
with f(x)
in eqn2
. If I had eqn1
in the form
eqn1better := T = f(x,y,z);
Then the following command would do what I want.
algsubs(eqn1better, eqn2);
So how do I swap the left-hand side and the right-hand side of an equation to turn eqn1
into eqn1better
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Maple为您提供了函数
lhs
和rhs
,您尝试过使用它们吗?Maple gives you the functions
lhs
andrhs
, have you tried using them.我偶然发现了另一个函数来完成我想做的事情。它仅适用于特定情况,
但使用
isolate
函数也可以解决我指定的问题。adamse 的答案更好,因为它解决了反转任何方程的一般情况,无论一侧是否是单个变量。
I stumbled upon another function to do what I want. It only works in the specific case of
but using the
isolate
function will also solve the problem I have specified.adamse's answer is better because it solves the general case of reversing any equation, regardless of whether or not one side is a single variable.
为了解决更大的问题,你应该考虑
消除
。您只需消除({eqn1,eqn2},T)
并获得替换和结果。To solve the bigger problem, you should consider
eliminate
. You can just toeliminate({eqn1,eqn2},T)
and get as a result both the substitution and the result.