How to simply differentiate equations?
4 次查看(过去 30 天)
显示 更早的评论
I have defined an equation V(x,t), can i store the second derivitive of this equation in a new equation?
0 个评论
采纳的回答
Wayne King
2013-4-24
编辑:Wayne King
2013-4-24
Do you have the Symbolic Toolbox?
syms x t;
v = cos(x)*sin(t);
d2v_dx2 = diff(v,'x',2);
d2v_dx2 has class sym
2 个评论
Wayne King
2013-4-24
编辑:Wayne King
2013-4-24
use subs() for example, to leave t alone and put in pi for the x variable
subs(d2v_dx2,[x,t],[pi,t])
or to substitute for both variables
subs(d2v_dx2,[x,t],[pi,pi/2])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!