How can I get outcome at a particular value after performing differentiation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
onsagerian
am 15 Feb. 2019
Kommentiert: onsagerian
am 17 Feb. 2019
Hello,
I would like to know how I can get outcome at a particular value after performing "differentiation" of a function using Matlab code. For example, after obtaining the first derivative of the particular function x^2-2*x+6, substituting x=3 into the derivative, then the outcome will be 4. See the simple program I've constructed, and please let me know how to fix the error.
syms x
f=x^2-2*x+6;
diff(f,x=2)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!