Partial Differentiation of a function

조회 수: 532 (최근 30일)
manish sharma
manish sharma 2011년 11월 23일
댓글: Jimmy 2023년 10월 13일
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
Jimmy
Jimmy 2023년 10월 13일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 11월 23일
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})
  댓글 수: 1
manish sharma
manish sharma 2011년 11월 24일
Thanks Grzegorz, that worked.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by