Partial Differentiation of a function

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 日

7 投票

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 件)

カテゴリ

質問済み:

2011 年 11 月 23 日

コメント済み:

2023 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by