How to define second derivative in symbolic

165 ビュー (過去 30 日間)
Anas Zh
Anas Zh 2022 年 4 月 7 日
コメント済み: Star Strider 2022 年 4 月 7 日
AA, I have a project to derive some equations that defined in symbolic variables. For example, r= cos(A), I want the symbolic system show me a result that dr/dA = -sin(A)*(dA/d) as A has derivatives values dA/d and so far for d²A/d² If I want the second derivative of r.

採用された回答

Star Strider
Star Strider 2022 年 4 月 7 日
Use the symbolic diff function —
syms A
r(A) = cos(A)
r(A) = 
D1r = diff(r)
D1r(A) = 
D2r = diff(r,2)
D2r(A) = 
.
  6 件のコメント
Anas Zh
Anas Zh 2022 年 4 月 7 日
Thank you a lot
Star Strider
Star Strider 2022 年 4 月 7 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (1 件)

Mohammed Hamaidi
Mohammed Hamaidi 2022 年 4 月 7 日
dr/dA = -sin(A)*(dA/d)
d²r/dA² = -cos(A)*(dA/d)^2-sin(A)*d²A/d²
  3 件のコメント
Mohammed Hamaidi
Mohammed Hamaidi 2022 年 4 月 7 日
What is A?
Anas Zh
Anas Zh 2022 年 4 月 7 日
Any variable, it doesn't matter

サインインしてコメントする。

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by