How do i perform variable change substitution in either mupad or symbolic
2 次查看(过去 30 天)
显示 更早的评论
I would like to convert an expression such as diff(Ur,r) to diff(Ur,NormR) where NormR(r,theta)=(RO-r)/(RO-Rw(theta)) with the symbolic functions of matlab.
the diff(Ur,r) is inside a larger expression and there are other derivatives with respect to r i would also like to change. Obviously on paper this is simple with a chain rule expansion to switch variables.
For example:
Continuity:=simplify(combine(eval(-rho*divu=ur/r*diff(r*rho,r)+ut/r*diff(rho,t)+uz*diff(rho,z))))
I would like to change the variable r to NormR which is a function of R in the above equation.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!