Partial Differentiation of a function

397 visualizaciones (últimos 30 días)
manish sharma
manish sharma el 23 de Nov. de 2011
Comentada: Jimmy el 13 de Oct. de 2023
syms x y
f=x^2+2*y^2-22
P=diff(f,x)
Here, I have calculated the (partial) differentiation of function "f" w.r.t 'x'
Now, I want to know the value of 'P' at certain point (say x=1.5, y=2.0)
Please help!
  1 comentario
Jimmy
Jimmy el 13 de Oct. de 2023
The information you share is necessary for me, I've been looking for it for a few days and it helped me get my job done.

Iniciar sesión para comentar.

Respuesta aceptada

Grzegorz Knor
Grzegorz Knor el 23 de Nov. de 2011
One of the possibilities:
syms x y
f=x^2+2*y^2-22
P=diff(f,x)
subs(P,{x,y},{1.5,2})

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by