Partial differentiation-Multiple syms derivative x and y
1 次查看(过去 30 天)
显示 更早的评论
I have a eq. like this y=cosh(L*x)*cos(L*y) (1)
What is the code that I must do if I want to have a result like this: y'=L*x'*sinh(L*x)*cos(L*y)-L*y'*sin(L*y)*cosh(L*x) (2)
I just need a eq.2. I don't know how to call the caculation from 1-2. Sorry about it. Thanks in advance.
0 个评论
采纳的回答
Torsten
2015-4-14
syms t, L
x = sym('x(t)'); % x(t)
y = sym('y(t)'); % y(t)
E1 = diff(y);
E2 = cosh(L*x)*cos(L*y);
E3 = diff(E2,t);
pretty(E1)
pretty(E3)
Best wíshes
Torsten.
更多回答(3 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!