How to calculate derivative of function of inside of another function ?

1 回表示 (過去 30 日間)
Hasan Berke Bankoglu
Hasan Berke Bankoglu 2020 年 6 月 2 日
コメント済み: madhan ravi 2020 年 6 月 3 日
I can calculate g(-2) but I can not calculate g'(-2) at the same time with g(2). How can I write a function to calculate both of them in one function.

回答 (1 件)

madhan ravi
madhan ravi 2020 年 6 月 2 日
doc syms
doc diff
  5 件のコメント
Hasan Berke Bankoglu
Hasan Berke Bankoglu 2020 年 6 月 2 日
編集済み: Hasan Berke Bankoglu 2020 年 6 月 2 日
Yes, it's mine and it's my responsibility and I want to learn it completely. I couldn't understand your code snippet. Can you tell me what the wrong things are in my codes? Just tell me what the wrong, I don't want any code. If I can learn what the wrong, then, I may solve it.
madhan ravi
madhan ravi 2020 年 6 月 3 日
  • You create a function
  • Which takes in a function
  • You evaluate it at a given point
  • You differentiate that function at a given point (Hint: diff(...) )
Possible sources:
doc syms
doc diff
doc function
Lots of examples to go with the flow.

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

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by