Partial differentiation-Multiple syms derivative x and y

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.

 채택된 답변

Torsten
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.

댓글 수: 1

Dear Mr. Torsten, Why you put E1 in your code. I don't understand about it. If I remove it, it still give a same result. Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

카테고리

도움말 센터File Exchange에서 Linear Algebra에 대해 자세히 알아보기

질문:

2015년 4월 14일

댓글:

2015년 4월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by