numpy.polynomial.hermite_e.hermeder#

polynomial.hermite_e.hermeder(c, m=1, scl=1, axis=0)[源代码]#

对 Hermite_e 序列求导.

返回沿 axis 求导 m 次的序列系数 c .在每次迭代中,结果乘以 scl (缩放因子用于线性变量变化).参数 c 是沿每个轴从低到高阶数的系数数组,例如,[1,2,3] 表示序列 1He_0 + 2He_1 + 3He_2 ,而 [[1,2],[1,2]] 表示 1He_0(x)He_0(y) + 1He_1(x)He_0(y) + 2He_0(x)He_1(y) + 2He_1(x)He_1(y) ,如果 axis=0 是 x ,axis=1 是 y .

参数:
carray_like

Hermite_e 级数系数的数组.如果 c 是多维的,则不同的轴对应于不同的变量,每个轴的阶数由相应的索引给出.

mint, optional

导数的阶数,必须是非负数.(默认值:1)

scl标量,可选

每次求导都乘以 scl .最终结果是乘以 sclm .这用于线性变量变换.(默认值:1)

int, optional

导数所取的轴.(默认值:0).

返回:
derndarray

导数的埃尔米特级数.

参见

hermeint

注释

通常,对埃尔米特级数求导的结果与对幂级数执行相同操作的结果不同.因此,此函数的结果可能是"违反直觉的",但却是正确的;请参见下面的"示例"部分.

示例

>>> from numpy.polynomial.hermite_e import hermeder
>>> hermeder([ 1.,  1.,  1.,  1.])
array([1.,  2.,  3.])
>>> hermeder([-0.25,  1.,  1./2.,  1./3.,  1./4 ], m=2)
array([1.,  2.,  3.])