计算差商
Wolfram 语言不仅可以计算熟知的单变量差商,也可以计算多元和高价差商.
In[1]:=
DifferenceQuotient[f[x], {x, h}]
Out[1]=
二阶差商是一阶商数的差商.
In[2]:=
DifferenceQuotient[f[x], {x, 2, h}]
Out[2]=
In[3]:=
DifferenceQuotient[f[x], {x, h}];
DifferenceQuotient[f[x], {x, 2, h}];
% == DifferenceQuotient[%%, {x, h}]
Out[3]=
计算多元差商.
In[4]:=
DifferenceQuotient[(x + y + 1)/(((x^2 + 3) (y + 5))), {x, h}, {y, k}]
Out[4]=
创建一个多项式的阶数递增的差商的表格,其结果为一些阶数递减的多项式.
In[5]:=
Grid[Table[
DifferenceQuotient[x^3 y^2 + 5 x y + 11, {x, i, r}, {y, j, s}], {i,
4}, {j, 3}], Spacings -> {2, 1}]
Out[5]=