How to define second derivative in symbolic

46 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(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²

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by