# Partial Differentiation of a function

150 visualizzazioni (ultimi 30 giorni)
manish sharma il 23 Nov 2011
Commentato: Jimmy il 13 Ott 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)
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Jimmy il 13 Ott 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.

Accedi per commentare.

### Risposta accettata

Grzegorz Knor il 23 Nov 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})
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
manish sharma il 24 Nov 2011
Thanks Grzegorz, that worked.

Accedi per commentare.

### Categorie

Scopri di più su Number Theory in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by