简化Maxima

发布于 2025-01-28 14:54:48 字数 276 浏览 2 评论 0原文

我已经定义了以下表达: r:sqrt((y1-x1)^2+(y2-x2)^2); 当我相对于y1区分r时,即 diff(r,y1);我得到答案为(y1-x1)/sqrt((y1-x1)^2+(y2-x2)^2);答案在技术上是正确的,但我希望答案的形式为(y1-x1)/r。我尝试使用“替代”,但没有得到所需的答案。这是代码

kill(all);
r:sqrt((y1-x1)^2+(y2-x2)^2);
t1:diff(r,y1);

可以指导我如何获得所需答案的代码。谢谢

I have defined the following expression:
r:sqrt((y1-x1)^2+(y2-x2)^2);
When I differentiate r with respect to y1, i.e.
diff(r,y1); I get the answer as (y1-x1)/sqrt((y1-x1)^2+(y2-x2)^2); The answer is technically correct but I would like the answer to be of the form (y1-x1)/r. I have tried using "subst" but I am not getting the desired answer. Here is the code

kill(all);
r:sqrt((y1-x1)^2+(y2-x2)^2);
t1:diff(r,y1);

Can someone please guide me in how to get the desired answer. Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文