0%

Multivariate Function Differentiation

多元函数的微分

diff

  1. 求函数f(x, y)关于x的导数
1
2
syms x y
diff(f(x, y), x)
  1. 求函数f(x, y)关于x的n阶导数
1
diff(f(x, y), x, n)
  1. 求函数f(x, y)关于x和y的2阶混合偏导数
1
diff(f(x, y), x, y)
  1. 求函数f(x, y)的全微分
1
2
syms dx dy
dz = diff(f(x, y), x) * dx + diff(f(x, y), y) * dy

Welcome to my other publishing channels