Python Sympy printing differentiated user defined composite function; how to toggle substitution

只谈情不闲聊 提交于 2019-12-06 15:59:58

Substituting is done with subs. If something is not evaluated you can force it with the doit method.

>>> diff(f(u(t),t),t).subs(u(t),U)
Derivative(U,t)∗Subs(Derivative(f(xi1,t),xi1),(xi1,),(U,))+Derivative(f(U,t),t)

>>> _.doit()
Derivative(f(U,t),t)

Check the tutorial! It has all these ideas presented nicely.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!