96
Bir necha uzgarivchilarga ega bo’lgan ifodalarni xususiy hosilalarini xam
diff
buyrug’i yordamida olish mumkin masalan cos
) ifodaning x,y,z bo’yicha xususiy
hosilalari mos ravishda
-
, -
, -
teng. Bu MATLABda
quyidagicha bajarialdi:
>>syms x y z
>>diff(cos(x*y/z)x)
ans=
-sin(x*y/z)*y/z
>>diff(cos(x*y/z))
ans=
-sin(x*y/z)*x*y/z^2
Har xil o`zgarivchilarga nisbatan bir necha xususiy hosilalarni olish uchun
diff
buyrug’i ko’p marta ishlatilishi kerak, masalan cos
) ifodani avval x keyin y va
undan keyin z bo’yicha xususiy hosilasi quydagicha olinadi:
>>syms x z y
>>diff(diff(diff(cos(x*y/),x,)y,)z,)
ans=
-sin(x*y/z)*x^2*y^2/z^4+3*cos(x*y/z)*x/z^3*y+sin(x*y/z)z^2
Dostları ilə paylaş: