How to write a code to calculate the f '(3)?

3 ビュー (過去 30 日間)
yang-En Hsiao
yang-En Hsiao 2019 年 10 月 13 日
回答済み: darova 2019 年 10 月 13 日
If f(x)=,then i want to know what is the value after i differential it and replace x with 3
I mean first i calculate f ' (x)=,then now i replace x with 3= f ' (3)== -5.4783
how do i write a code to calculate to the -5.4783?
I know i can use diff() to calculate the f ' (x),but how do i calculate the f ' (3) directly?

回答 (1 件)

darova
darova 2019 年 10 月 13 日
Try symbolic expression
syms f(x)
f(x) = x^2;
f1 = diff(f);
f1(5)

カテゴリ

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