numpy.polynomial.laguerre.lagpow#

polynomial.laguerre.lagpow(c, pow, maxpower=16)[源代码]#

将拉盖尔级数提升到幂.

返回拉盖尔级数 cpow 次幂.参数 c 是一个系数序列,从低到高排序.例如,[1,2,3] 是级数 P_0 + 2P_1 + 3P_2.

参数:
carray_like

从低到高排序的拉盖尔级数系数的 1-D 数组.

powinteger

级数将提升到的幂

maxpowerinteger, optional

允许的最大幂. 这主要是为了限制级数增长到无法管理的大小.默认为 16

返回:
coefndarray

幂的拉盖尔级数.

参见

lagadd , lagsub , lagmulx , lagmul , lagdiv

示例

>>> from numpy.polynomial.laguerre import lagpow
>>> lagpow([1, 2, 3], 2)
array([ 14., -16.,  56., -72.,  54.])