numpy.polynomial.legendre.legmulx#
- polynomial.legendre.legmulx(c)[原始碼]#
將 Legendre 級數乘以 x。
將 Legendre 級數 c 乘以 x,其中 x 是自變數。
- 參數:
- carray_like
Legendre 級數係數的 1-D 陣列,從低到高排序。
- 返回:
- outndarray
表示乘法結果的陣列。
註解
乘法使用 Legendre 多項式的遞迴關係式,形式如下
\[xP_i(x) = ((i + 1)*P_{i + 1}(x) + i*P_{i - 1}(x))/(2i + 1)\]範例
>>> from numpy.polynomial import legendre as L >>> L.legmulx([1,2,3]) array([ 0.66666667, 2.2, 1.33333333, 1.8]) # may vary