フィルターのクリア

How to calculate detivative of a function with respect to another function

1 回表示 (過去 30 日間)
Laura Passalacqua
Laura Passalacqua 2020 年 5 月 31 日
編集済み: madhan ravi 2020 年 5 月 31 日
Hi! I want to calculate the derivative below in matlab
Have anyone any idea?

採用された回答

madhan ravi
madhan ravi 2020 年 5 月 31 日
編集済み: madhan ravi 2020 年 5 月 31 日
syms u x
subs(diff(u^2 - 1), u, cos(x))

その他の回答 (1 件)

Alan Stevens
Alan Stevens 2020 年 5 月 31 日
Surely you don't need to do this in Matlab!
Just set u = cos(x), so you have d/du(u^2 - 1) = 2u = 2cos(x)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by