简化Maxima
我已经定义了以下表达: 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论