Mathematica 中是否有类似于 Maple 的 "lhs" 和 "rhs" 函数?

Is there a "lhs" and "rhs" function in Mathematica that is similar to Maple?

在 Maple 中,我们可以使用“lhs”和“rhs”函数来检索方程的左侧或右侧,但我可以在 Mathematica 中找到类似的函数。谁能建议如何在 Mathematica 中执行此操作?

非常感谢。

看看你能不能适应这个。

我这样命名方程e1

e1 = x==y

则e1的lhs为

e1[[1]]

哪个returns

x

e1 的 rhs 是

e1[[2]]

哪个returns

y