필터 지우기
필터 지우기

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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by