Partial differentiation-Multiple syms derivative x and y

1 回表示 (過去 30 日間)
vu ngothanh
vu ngothanh 2015 年 4 月 14 日
コメント済み: vu ngothanh 2015 年 4 月 14 日
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 件のコメント
vu ngothanh
vu ngothanh 2015 年 4 月 14 日
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 件)

Torsten
Torsten 2015 年 4 月 14 日

vu ngothanh
vu ngothanh 2015 年 4 月 14 日
Thank you for your help. But, your link just solved the diff of x, while I need diff in both x and y. Can you help me again. Thanks a lot

vu ngothanh
vu ngothanh 2015 年 4 月 14 日
Thanks you very much.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by