how can i find the value of differentiation? that is f'(2)?

3 visualizaciones (últimos 30 días)
Bishwam Pattnaik
Bishwam Pattnaik el 12 de Mzo. de 2019
Editada: VBBV el 2 de Feb. de 2024
f=@(x) x^2- 4
a=diff(f,x)
a(2)? .... (i am getting error here)

Respuestas (1)

Alex Mcaulley
Alex Mcaulley el 12 de Mzo. de 2019
Editada: VBBV el 2 de Feb. de 2024
syms x
f=x^2- 4
f = 
a(x)=diff(f,x)
a(x) = 
a(2)
ans = 
4

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by